Hello,

a question - I'm just curious:

What is advantage (or maybe intension) of using buffers over \def?

Compare:

----
\def\BufA{This is buffer A.}

\startbuffer[BufB]
  This is buffer B.
\stopbuffer

\starttext
  \BufA
  \getbuffer[BufB]

  \ifx\BufC\undefined No buffer C.\else\BufC\fi
\stoptext
----

Both ways give the required effect.

Moreover, when using \def, I can also test its existence (maybe it's also 
possible with buffers, but I don't know how).

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

Attachment: t-Buf.mkiv
Description: Binary data

Attachment: t-Buf.pdf
Description: Adobe PDF document

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to