Compile Time Execution of Inout Parameters
Xinok
xnknet at gmail.com
Sun Mar 4 12:02:27 PST 2007
> The out and inout are only for functions called by compile time
executed functions.
I figured that much. Frits cleared it up though, it was because I had no
return type that the compiler was restricting me from compiling it.
I think this is one restriction which should be lifted, or at least
modified to allow functions with out / inout parameters. I believe
restrictions should only be put in place in a language if it prevents
something dangerous, such as returning the address of a local variable,
or using an uninitalized variable. This is one restriction which doesn't
prevent anything dangerous, and is just something which programmers will
be forced to work around.
More information about the Digitalmars-d
mailing list