Make dur a property?

Jacob Carlborg doob at me.com
Wed Jan 23 12:37:19 PST 2013


On 2013-01-23 19:08, Adam D. Ruppe wrote:

> 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.
>
> So the result would be similar to #define t.foo (t.foo()). The type
> system then takes care of the parenthesis - no special code is required
> for syntax.

What about functions not marked with @property?

writeln = "asd";

Doesn't look very nice.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list