Safer casts
Dee Girl
deegirl at noreply.com
Sat May 10 21:15:12 PDT 2008
Yigal Chripun Wrote:
> Dee Girl wrote:
> > I agree! Strings and aliases are much less powerful than delegates
> > and closures because they are static and can not have state.
> > But I am confused about something. I compiled this with phobos:
> >
> > sort!(function bool(int a, int b) { return a > b; })(array);
> >
> > There is clear difference in syntax from your examples. But my
> > question is: what are the differences in semantics? Thank you, Dee
> > Girl
>
> I'm not sure what exactly are you asking. are you asking what's the
> difference between a delegate and a function?
Please let me rephrase. What is the difference between a function passed as an alias, and a delegate? You hate one and you like the other so the difference must be big. But I do not find it. Thank you, Dee Girl
More information about the Digitalmars-d
mailing list