Properties

Miles _______ at _______.____
Sun Jan 11 06:59:09 PST 2009


Andrei Alexandrescu wrote:
> Walter and I see eye to eye that a possible solution would be to only
> allow the a = b syntax as an alternative for a(b) only if there's also a
> function a(). All of the above can be fixed within that framework.

That would only patch a single consequence of the much bigger core
problem that is the current property syntax.

Not to say that, although rare, it is perfectly possible to have
write-only properties. I once wrote a microcontroller emulator that had
a few write-only registers, serial port output, for example.



More information about the Digitalmars-d mailing list