Qs about structs and their references WRT C functions and variables

Mike Parker aldacron71 at yahoo.com
Tue Jan 30 20:25:05 PST 2007


Rick Mann wrote:
> 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.

For now, it's the only option we have. You can read 'inout' as 'byref'.


More information about the Digitalmars-d-learn mailing list