Jesteś w: Start / Przedsięwzięcia/Projects / TeX Pearls / 2008 Pearls / hans-hagen / bachotex2008-hans-hagen-pearl1.tex

bachotex2008-hans-hagen-pearl1.tex

TeX document icon bachotex2008-hans-hagen-pearl1.tex — TeX document, 1 KB

Zawartość pliku

%%% Crash on recurse

% Check this out:

%\newtoks \test % as it was originally surfaced
\def\test{\the\test}
\test

% We might expec an endless loop here.
% But we got an unexpected \TeX\ crash instead.

% Look at that:

\def\test{\show\test} % \def\test{\showthe\test}
\test

% gives
% > \test=macro:
% ->\show \test .
% \test ->\show \test 

% Usual in a language a definition binding to a name happens afterwards, but not in \TeX...

\end