Logiweb(TM)

7.12.5 protect

Prev Up Next Page 235 of 800 Search internet


The protect x end protect construct is a rather trivial macro which disappears when macro expanded and which does not macro expand its subterm. Thus, it protects its subterm x against macro expansion.

The protect macro may be used to protect against macro expansion, e.g. in the left or right hand side of macro definitions. It may also be used to protect blocks of definitions against macro expansion. As an example, it may be useful to protect the name and charge definitions generated by the ""N and ""C directives. Otherwise, macro defined constructs will not end up having correct name and charge.

The protect macro is essential during the bootstrap which occurs when lgc(1) loads the base page.

Prev Up Next Page 235 of 800 Search logiweb.eu

Copyright © 2010 Klaus Grue, GRD-2010-01-05