Home » Community » U++ community news and announcements » New pick/clone notation now merged into trunk
New pick/clone notation now merged into trunk [message #42463] |
Mon, 17 March 2014 10:37  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
As announced previously in development blog
http://www.ultimatepp.org/forum/index.php?t=msg&th=8448& amp;start=0&
U++ now changes controversial "default pick" behaviour. The new "pick" is described here:
http://www.ultimatepp.org/srcdoc$Core$pick_$en-us.html
Being there, I have added some missing features:
Containers now have ToString (if elements support AsString), which returns the content of container in single line.
Containers support operator==/!= if elements support operator==.
Containers support SgnCompare and < > <= >= if elements support SgnCompare.
Tuples now support coversion to tuple of another type of same number of elements
Tuple2<double, double> x = MakeTuple<int, int>(1, 2);
Tie (C++11 inspired) can be used to assign tuple to variables
int x, y;
Tie(x, y) = MakeTuple(1, 2);
Value now supports < > <= >= comparisons.
In the same time I apologize for delays in applying patches, I did not wanted too many merge conflicts....
|
|
|
|
Goto Forum:
Current Time: Sun Apr 27 00:26:18 CEST 2025
Total time taken to generate the page: 0.00906 seconds
|