7.12.2 Macro engines and bed pages
Page 232 of 800 |
| Search internet |
A page is macro expanded thus:
- Look up the macro aspect of the page symbol of the page being expanded.
- If found, apply the macro aspect to the cache of the page being expanded, prune the result, and hang it on the expansion hook of the page.
- If not found, look up the macro aspect of the page symbol of the bed page (if any). The bed page is reference number 1 of the page being verified.
- If found, apply the macro aspect to the cache of the page being expanded, prune the result, and hang it on the expansion hook of the page.
- If not found, hang the body of the page unmodified on the expansion hook.
The macro aspect of the base page reads:

This in turn is defined thus:

If you read theses pages cover to cover, the above may give you a feeling of déjà vu. In any case, the definitions above provide a good starting point for those who really want to know how macro expansion works.
Page 232 of 800 |
| Search logiweb.eu |
Copyright © 2010
Klaus Grue,
GRD-2010-01-05