D2's std.algorithm

Janice Caron caron800 at googlemail.com
Wed Dec 12 11:44:11 PST 2007


On 12/12/07, bearophile <bearophileHUGS at lycos.com> wrote:
> Janice Caron:
> > sort!(q{a > b})(array);
>
> Please explain :-)

It's just another way of writing strings. You can write "..." or you
can write q{...}. It's slightly different - escape strings aren't
expanded, and the string contents have to be valid D, but it's still
just a string. The cool thing is that your text editor doesn't know
that, and so will still syntax-highlight the string contents!



More information about the Digitalmars-d mailing list