Qs about structs and their references WRT C functions and variables

Rick Mann rmann-d-lang at latencyzero.com
Tue Jan 30 19:20:38 PST 2007


Frits van Bommel Wrote:

> You could use inout. It's basically a C++ non-const reference.

Yeah, but it kind of breaks the implied semantics...in this case, the parameter is used as input, and not modified, so the value of the supplied parameter is unaffected by the call.


More information about the Digitalmars-d-learn mailing list