DIP27 available for destruction

deadalnix deadalnix at gmail.com
Wed Feb 27 02:24:51 PST 2013


On Wednesday, 27 February 2013 at 09:38:56 UTC, Timon Gehr wrote:
> I'm not sure why elaboration would be necessary.
> Remove the optional parens part, then:
>
> int foo(int x){ ... }
>
> 2.foo // <- no meaning assigned by your DIP, make it a function 
> call

I considered optional parentheses where you would have an error, 
but I'm afraid that this could create weird effect with function 
overloads.

It may be limited to the case where expression can't be used as 
statement because it has no effect.


More information about the Digitalmars-d mailing list