@property needed or not needed?

Nick Treleaven ntrel-public at yahoo.co.uk
Tue Dec 4 09:39:42 PST 2012


On 04/12/2012 16:24, 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.

I expect it is, perhaps by disallowing calling a property function with 
no arguments.


More information about the Digitalmars-d mailing list