On 22-12-2011 01:13, Wolfgang Schuster wrote:
Can we now consider the following prefixes for registers as the suggested
method to name them:
\newcount: \c_…
\newdimen: \d_…
\newskip: \s_…
\newbox: \b_…
\newtoks: \t_…
I also use \c for constants and conditionals (as they are in fact also
numbers). I use \m_ for temporary macros and \p_ for expanded parameters
(not yet consistently). So we get:
%D Conventions:
%D
%D \starttyping
%D \newcount \c_class_whatever
%D \newconditional \c_class_whatever
%D \newconstant \c_class_whatever
%D \newdimen \d_class_whatever
%D \newskip \s_class_whatever
%D \newmuskip \s_class_whatever
%D \newbox \b_class_whatever
%D \newtoks \t_class_whatever
%D
%D \edef\p_class_whatever{\classparameter\c!whatever}
%D \edef\m_class_whatever{whatever}
%D \stoptyping
(coment appended to mult-aux.mkiv)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context