I searched the archives with Google (what, no internal search engine??),
and found the thread on perl6 macros, which I did read.
From what I saw, it mostly concentrated on using macros for speed. That
should be a minor argument, especially considering this is perl. :)
Common Lisp macros are
On Thu, 2002-03-21 at 12:52, Allison Randal wrote:
On Wed, Mar 20, 2002 at 09:59:35AM -0800, Larry Wall wrote:
I should update y'all to my current thinking, which is that $_ is
always identical to the current topic, even if the topic is aliased to
some other variable. To get at an outer
Aaron Sherman writes:
: On Thu, 2002-03-21 at 12:52, Allison Randal wrote:
: On Wed, Mar 20, 2002 at 09:59:35AM -0800, Larry Wall wrote:
:
: I should update y'all to my current thinking, which is that $_ is
: always identical to the current topic, even if the topic is aliased to
: some
macro foo($a,$b) {
return( $c // $a+$b );
}
print foo(1,2), \n;
my $c=100;
print foo(1,2) \n;
Yeah, your example provided is correct. It's called variable
capture, and there's some work required by common lisp macros to
ensure that unwanted variable capture does not occur.
I don't