in reply to if(my) scope
if is implemented in terms of and, and neither creates a scope at run-time (i.e. they don't call ENTER+LEAVE). That means they don't affect the life (refcount) of variables.
if only affects the visibility of the variable, a compile-time effect.
yuck!
Update: Just to be clear, I'm talking specifically about the condition expression, not the body of the if.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: if(my) scope
by cdarke (Prior) on Apr 16, 2009 at 15:44 UTC | |
by ikegami (Patriarch) on Apr 16, 2009 at 15:53 UTC | |
by cdarke (Prior) on Apr 16, 2009 at 16:01 UTC | |
|
Re^2: if(my) scope
by oha (Friar) on Oct 12, 2009 at 08:53 UTC | |
by ikegami (Patriarch) on Oct 12, 2009 at 09:20 UTC | |
by oha (Friar) on Oct 12, 2009 at 14:50 UTC | |
by ikegami (Patriarch) on Oct 12, 2009 at 17:01 UTC |