guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uninterned symbols as Tree-IL constants


From: BT Templeton
Subject: uninterned symbols as Tree-IL constants
Date: Sat, 20 Aug 2011 20:20:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

I noticed that when uninterned symbols are used as Tree-IL constants,
they're just dumped as normal (interned) symbols, which isn't useful for
Elisp or other languages with unhygienic macro systems. Is there a
particular reason there's no special handling for uninterned symbols in
`dump-object' in `(language glil compile-assembly)'?

I've defined a `make-uninterned-symbol' VM instruction and added support
for this approach, and it works except for the somewhat unintuitive
consequence that

  (let ((x (make-symbol "x"))) (eq x (eval `',x))) => nil.

-- 
Inteligenta persono lernas la lingvon Esperanton rapide kaj facile.
Esperanto estas moderna, kultura lingvo por la mondo. Simpla, fleksebla,
belsona, Esperanto estas la praktika solvo de la problemo de universala
interkompreno. Lernu la interlingvon Esperanton!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]