Ref (was Re: inlining)
Matti Niemenmaa
see_signature at for.real.address
Fri Jul 18 07:16:45 PDT 2008
Walter Bright wrote:
> I don't see the need for an inline or non-inline specifier. It's as
> obsolete as the register keyword.
Then why was "inout" renamed to "ref"?
Before you say, "so that we could have 'const ref'", let me note that ref in
that sense is as obsolete as inline or register. It should just be "in" or the
default and the compiler should figure out whether it's by-reference or by-value.
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d
mailing list