On 03/13/2013 07:00 PM, deadalnix wrote:
http://wiki.dlang.org/DIP30

As usual, go for simplicity, reduce the number of entity the
language define.

Feel free to destroy.

It's quite pretty.

But:

1. Removes optional parens for UFCS
2. Syntactic confusion of ref applying to return value and ref applying to context. Rules are insufficiently specified.
3. Misses the load mutable-context delegate from const-qualified type case.
4. typeof(dg.ptr), typeof(dg.funcptr) ? (quite obvious what you want, but missing)

Also: You will have to change the ABI in order to unify UFCS with methods, because the implicit 'this' pointer is passed as the last argument for methods IIRC.

Reply via email to