Compile Time Execution of Inout Parameters

Walter Bright newshound at digitalmars.com
Sun Mar 4 10:54:40 PST 2007


Frits van Bommel wrote:
> It seems functions returning void can't be executed at compile time, 
> even if they have out/inout parameters...

This is by design:

1) functions with no output make no sense evaluating at compile time

2) it makes no sense to have a compile time function return its value 
via an out or inout rather than the return value



More information about the Digitalmars-d mailing list