A nice way to step into 2012

Walter Bright newshound2 at digitalmars.com
Tue Dec 27 10:13:59 PST 2011


On 12/27/2011 7:21 AM, dsimcha wrote:
> On Tuesday, 27 December 2011 at 15:19:07 UTC, dsimcha wrote:
>> On Tuesday, 27 December 2011 at 15:11:25 UTC, Andrei Alexandrescu wrote:
>>> Imagine how bitter I am that the string lambda syntax didn't catch on!
>>>
>>> Andrei
>>
>> Please tell me they're not going anywhere. I **really** don't want to deal
>> with those being deprecated.
>
> ...and they were kind of useful in that you could introspect the string and
> apply optimizations depending on what the lambda was. I wrote a sorting function
> that introspected the lambda that was passed to it. If it was "a < b", "a<b", "a
>  > b", etc., and the array to be sorted was floating point, it punned and bit
> twiddled the floats/doubles to ints/longs, sorted them and bit twiddled and
> punned them back.

It's not going anywhere, though it likely will disappear from the sample code.


More information about the Digitalmars-d mailing list