Safer casts

Yigal Chripun yigal100 at gmail.com
Sat May 10 17:36:26 PDT 2008


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?
--Yigal



More information about the Digitalmars-d mailing list