lazy is broken, but we have delegates

deadalnix deadalnix at gmail.com
Sun Apr 29 15:30:30 PDT 2012


Le 30/04/2012 00:03, Peter Alexander a écrit :
> So, in short, all expressions have an implicit conversion to
> 'typeof(Expression) delegate()'.
>
> Seems reasonable at first glance, although I get the feeling it will
> have nasty edge cases. Implicit conversions generally do seem to cause
> trouble.

Yes, and delegate can be qualified with usual @safe nothrow pure or 
whatever if it valid depending on the Expression. The return type can be 
typeof(Expression) but also any covariant type.


More information about the Digitalmars-d mailing list