masak / bel

An interpreter for Bel, Paul Graham's Lisp language
GNU General Public License v3.0
27 stars 1 forks source link

'dyn' is not defined #352

Closed masak closed 3 years ago

masak commented 3 years ago

Just discovered this:

> dyn
Error: ('unboundb dyn)

Must be a simple omission among the primitives.

masak commented 3 years ago

ENOTABUG. dyn is not a primitive, it's a form.

% bel
Language::Bel 0.55 -- darwin.
> (set keys [map car _])
(lit clo nil (_) (map car _))
> (keys forms)
(thread ccc after dyn where if quote (nil))
> 

Forms are notoriously non-first-class. Specifically, they don't show up in the global namespace, but only (seen above) in the forms namespace.

Closing.