inout functions

Piotr Szturmaj bncrbme at jadamspam.pl
Thu Aug 23 15:14:05 PDT 2012


Hi,

I found this code of std.range.iota's Result struct:

         @property inout(Value) front() inout { assert(!empty); return 
current; }

What's the purpose of inout on parameterless functions?


More information about the Digitalmars-d-learn mailing list