@property needed or not needed?

Mike Parker aldacron at gmail.com
Tue Dec 4 17:17:32 PST 2012


On Tuesday, 4 December 2012 at 16:24:27 UTC, Minas Mina wrote:
> Isn't it possible to have parentheses optional only for UFCS?
>
> E.g.
>
> Allow:
> I 5.writeln
>
> Dissallow:
>
> void f()
> {
> 	writeln("hi");
> }
>
> f; // this currently works
>
>
> I don't know if this is possible to implement.

+1
5.writeln is going to be translated by the compiler as writeln(5) 
anyway, so I think this is a great compromise.


More information about the Digitalmars-d mailing list