Proposal: Reference Variables

Hong Hong_member at pathlink.com
Mon Apr 10 18:43:39 PDT 2006


ref/alias/inout are possible choices. It seems impossible to write proper
containers without C++ like reference type

>
>I would moderately prefer a syntax with "ref" instead of "&", as:
>   long x = 1;
>   ref long z = &x;
>Also, "ref" (or "&") would supersede the functionality of "inout", since 
>they do the same, only that "inout" only works for parameter variables.
>
>-- 
>Bruno Medeiros - CS/E student
>http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D





More information about the Digitalmars-d mailing list