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

Reply via email to