© Michał "phoe" Herda 2020
M. HerdaThe Common Lisp Condition Systemhttps://doi.org/10.1007/978-1-4842-6134-7_5

5. Appendixes

Michał “phoe” Herda1 
(1)
Krakow, Poland
 

5.1 Appendix A: Implementation of dynamic variables in C

The C language, just like Lisp, has a macro system that allows one to extend the language with new syntax. Unlike Lisp macros, however, C macros are not an integral part of the language; they are loaded and expanded before the actual compilation happens by the utility called the preprocessor , which parses C code before passing it to the further stages of the C toolchain.

As we mentioned earlier, the C programming language has no innate notion of dynamic variables. However, we can “bolt” dynamic variables onto the language; we can ...

Get The Common Lisp Condition System: Beyond Exception Handling with Control Flow Mechanisms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.