D2's std.algorithm

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Dec 12 11:34:45 PST 2007


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:fjpcqv$1uio$1 at digitalmars.com...
> Janice Caron:
>> sort!(q{a > b})(array);
>
> Please explain :-)
>
> Bye,
> bearophile

q{ ... } is a "token string".  Its contents are lexed and have to conform to 
D's lexicography, but it is then turned into a string literal.  It goes well 
with string mixins and the like. 





More information about the Digitalmars-d mailing list