ref parameters: there is no escape

Mehrdad wfunction at hotmail.com
Mon Aug 15 21:49:39 PDT 2011


On 8/15/2011 9:48 PM, Mehrdad wrote:
> ref int get_foo(int s) {
>     int a = 9.8 * s;
>     return call_if(x, true);  // oops?
> }

Sorry, that should say "false", not "true".


More information about the Digitalmars-d mailing list