public
Description: Arc Lisp to C compiler
Home | Edit | New

Annotations

Any object can be annotated with the ’annotate function. The annotation itself can be an object of any kind (a symbol, a string, a list, a closure, …) but is generally supposed to be a symbol.

Implemented functions are annotate, type, rep, with the following definitions :

(is (type (annotate x y)) x) (is (rep (annotate x y)) y)

Annotated objects can be printed via pr or prn.

Last edited by sacado, Fri Apr 18 15:19:05 -0700 2008
Home | Edit | New
Versions: