in reply to Re^36: Why is the execution order of subexpressions undefined? (magic ruts)
in thread Why is the execution order of subexpressions undefined?
Hmm. I though lazy evaluation meant that the value wasn't calculated until needed.
If f() is a lazy evaluating function and I call it, it will give a result. The only way it wouldn't get called in the statement
result = f(a) * g(b) + h(c);
is if the compiler took it upon itself to override my explicit request to call it. If perl ever starts doing that, I'm gonna use VB!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^38: Why is the execution order of subexpressions undefined? (magic ruts)
by Anonymous Monk on Apr 19, 2005 at 15:58 UTC | |
|
Re^38: Why is the execution order of subexpressions undefined? (magic ruts)
by Anonymous Monk on Apr 19, 2005 at 15:58 UTC | |
by BrowserUk (Patriarch) on Apr 19, 2005 at 16:03 UTC | |
by Anonymous Monk on Apr 20, 2005 at 08:47 UTC |