in reply to Re: Doing "it" only once
in thread Doing "it" only once
If you rework this as actual perl code, its even possible to do today, with no changes to the perl parser. Really though, Limbic~Region should just be using lisp if he wants to have such flexibility. If this is too much overhead, the ifonce() function could be inlined like I described in my other node.
sub ifonce { my ( $test, $block, $else ) = @_; if ( $test->() ) { $block->(); # Perform the appropriate B magic to remove this function call + from execution. } else { $else->(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Doing "it" only once
by Limbic~Region (Chancellor) on Sep 22, 2005 at 19:10 UTC | |
by QM (Parson) on Sep 22, 2005 at 19:41 UTC |