https://sourceware.org/bugzilla/show_bug.cgi?id=32391

--- Comment #6 from Regis Duchesne <regis.duchesne at broadcom dot com> ---
(In reply to Nick Clifton from comment #5)
Hi Nick,

> But in the meantime I think that I have uncovered *part* of the reason why 
> the \@ counter is behaving strangely:  The \@ counter is incremented at the 
> *end* of the macro invocation, not the start.

I suspected that. Which is why I carefully crafted my example in comment #0 so
that it tests multiple things:
1. That the per-macro @ value is initialized from a global counter that is
incremented every time macro starts executing (what you just described).
2. That the per-macro @ value is constant for the lifetime of that macro (that
property applies to any macro argument, regardless of explicit vs implicit).
That test is the after_inner_\@ label in the outer macro, which after execution
of the two inner macros, must still output after_inner_0 (and not
after_inner_2).

Cheers,
-- 
Régis

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to