So what does (inout int = 0) do?

QAston via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 17 07:30:59 PDT 2016


On Friday, 15 April 2016 at 20:03:07 UTC, Andrei Alexandrescu 
wrote:
> We should really do away with the cowboy style of designing 
> language, which sadly Walter and I have been guilty of too 
> often in the past. The slow but sure accretion of complexity of 
> inout is a textbook example of where that leads.
>
> Andrei

This deserves to be a poster with a golden frame. You've got 
lucky with pure (modulo corner cases) and ctfe, much less lucky 
with @safe, @trusted, @system, inout, shared, scope, property.



More information about the Digitalmars-d mailing list