Passing arguments into functions - in, out, inout, const, and contracts
Mike Parker
aldacron71 at yahoo.com
Sun Feb 11 01:58:36 PST 2007
Bill Baxter wrote:
> Jason House wrote:
>
> Don't know about out. It's pretty much the same as inout, with
> (perhaps?) some compile-time checks to make sure you don't try to read
> the value in the function. Seems pretty useless to me. Much more
> useful would be inbyref or some kind of const reference parameter. But
> that's supposedly in the works.
out sets the value of the parameter to its initializer. Otherwise it's
identical to inout.
More information about the Digitalmars-d-learn
mailing list