equivariant functions
Derek Parnell
derek at psych.ward
Sun Oct 12 13:50:13 PDT 2008
On Sun, 12 Oct 2008 14:34:05 -0500, Andrei Alexandrescu wrote:
> typeof(s) stripl(const(char)[] s);
> What do you think? I'm almost afraid to post this.
LOL. I already thought this was possible in D2. The concept sounds fine but
the "typeof(s)" part is a bit clunky. I know we have to tell the compiler
about this somehow, but maybe there is a better syntax.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list