pass-by-ref semantics for structs (was Deque impl.)

Maxim Fomin maxim at maxim-fomin.ru
Thu Jan 31 11:51:27 PST 2013


On Thursday, 31 January 2013 at 19:34:29 UTC, Dmitry Olshansky 
wrote:
> This is fine except that it doesn't solve the problem of:
> Container a = Container(); //should be empty container, not 
> illegal null-container
>
> Basically @dsiable this() is optional, but I like to help user 
> avoid bugs.

You have static opCall for such things. Since when this was a 
problem?



More information about the Digitalmars-d mailing list