proposal: @mixin functions to auto-mixin at call site

Dicebot public at dicebot.lv
Wed Sep 4 02:23:38 PDT 2013


On Wednesday, 4 September 2013 at 02:26:27 UTC, Timothee Cour 
wrote:
> that's the whole point, it allows to transparently replace a 
> field access
> by a property function call without breaking client code. How 
> else would
> you do that?

You can't replace field access with function call transparently 
if it has side effects. In the end breakage may be even worse. 
For me only replacing @property fields with @property methods 
makes sense (with former prohibited to be taken address of and 
latter forced to be weakly pure).'


More information about the Digitalmars-d mailing list