@property - take it behind the woodshed and shoot it?
kenji hara
k.hara.pg at gmail.com
Thu Jan 24 18:56:48 PST 2013
2013/1/25 deadalnix <deadalnix at gmail.com>
> Functional style is very painful right now. Function you pass as argument
> are executed implicitly, function as variable don't behave like native
> ones, and with the new proposal, it add confusion on the function returned.
>
I'd like to add a rule which forgotten to mention about optional
parentheses for normal functions.
> 1. Optional parentheses for normal functions should work shallowly IMO.
1a. Optional parentheses for normal functions is just allowed for the
getter usage.
int foo();
foo(); // ok
foo; // ok, from #1
void bar(int);
bar(1); // ok
bar = 1; // disallowed, from #1a
Kenji Hara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130125/c841a2ce/attachment.html>
More information about the Digitalmars-d
mailing list