Make dur a property?

Johannes Pfau nospam at example.com
Wed Jan 23 10:24:21 PST 2013


Am Wed, 23 Jan 2013 19:08:09 +0100
schrieb "Adam D. Ruppe" <destructionator at gmail.com>:

> 
> My preferred solution is:
> 
> 1) all functions without @property work exactly the same way they 
> do now (optional parenthesis, callable as setters with =)
> 
> 2) all functions with @property are ALWAYS rewritten so that a 
> reference to them instead references the return value and/or the 
> setter function.

This sounds OK, but you can still run into the callable issue if a
normal function returns a callable.

Probably add a rule that if a normal function returns a callable,
calling it without parentheses is illegal.


More information about the Digitalmars-d mailing list