On Sep 14, 1:47 pm, [EMAIL PROTECTED] (Joshua Isom) wrote:
> On Sep 13, 2007, at 9:00 PM, Allison Randal wrote:
>
> > Joshua Isom wrote:
> >> And while we're add it, can we add the magic to do the same thing we
> >> to do labels to variables as well?
>
> > What thing?
>
> > Allison
>
> It's the little magic that turns this:
>
> .macro foo(bar)
>         .local $baz:
>         print "hello\n"
>         dec .bar
>         if .bar goto $baz
> .endm
>
> .foo(I0)
> .foo(I0)
>
> into this:
>
> local__foo__3__$:
>         print "hello\n"
>         dec I0
>         if IO goto local__foo__3__$
> local__foo__4__$:
>         print "hello\n"
>         dec I0
>         if IO goto local__foo__4__$
>
> It basically an easy way to get a unique identifier.  A wishlist idea
> would be cpp's #foo stuff.

I may be slow in understanding sometimes, but I really don't know what
you mean.. :-) Could you elaborate a bit more?
Do you mean you want to get unique local variables (as the macro magic
can do for labels) ?

thanks,
kjs

Reply via email to