Article View: comp.text.tex
Article #2042Re: Why \new... is outer. Was: reserving registers from within macros
From: Victor Eijkhout
Date: Thu, 03 Sep 1992 15:20
Date: Thu, 03 Sep 1992 15:20
18 lines
1393 bytes
1393 bytes
In article <dak.715527435@kaa>, dak@kaa.informatik.rwth-aachen.de (David Kastrup) writes:
|> The reason that the \new-commands are outer is that they are only needed
|> for global variables. If you do it locally (inside a new group) you can
|> use ANY numeric register (save those used by the output routine) and assign
|> any values to them, since they will be restored on end of the group.
Wrong.
{\newcount\alpha}
is legal.
The outer-ness implies that such macros cannot appear as macro
arguments or in macro bodies,
something that makes sense for things such as \theorem.
However, for the \newxyz macros I (and others with me) feel htat
this decision was wrong.
Victor.
Technical Details
Message-ID:
<lacbagINN2nh@utkcs2.cs.utk.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!utkcs2!cupid.cs.utk.edu!eijkhoutReferences:
<repasky.715398745@sun.bdc.ubc.ca> <2SEP199204130168@reg.triumf.ca> <dak.715527435@kaa>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!utkcs2!cupid.cs.utk.edu!eijkhout From: eijkhout@cupid.cs.utk.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: Why \new... is outer. Was: reserving registers from within macros Date: 3 Sep 92 15:20:48 GMT Organization: University of Tennessee, Knoxville - Department of Computer Science Lines: 18 Distribution: world Message-ID: <lacbagINN2nh@utkcs2.cs.utk.edu> References: <repasky.715398745@sun.bdc.ubc.ca> <2SEP199204130168@reg.triumf.ca> <dak.715527435@kaa> Reply-To: eijkhout@cupid.cs.utk.edu (Victor Eijkhout) NNTP-Posting-Host: cupid.cs.utk.edu Keywords: \new..., register, reserve, macro, definition, forbidden control seq.