From: ·······@gmail.com
Subject: Using weak symbols in Lisp->C compilation?
Date: 
Message-ID: <4480a46a-386d-472d-8796-097cf4f207d3@l28g2000vba.googlegroups.com>
Hi,

I'm writing a Goo-like Lisp->C compiler, and I'm undecided between two
very different ways of mapping (top-level) names to values.

1) use dynamic data structures that map names to symbols, and put the
values into the symbols.

2) mangle names into C variables and use weak symbols to allow
redefinition.

I don't know if 2) works, but the basic idea would be that a DEF...
form declares the C variable as weak, and then assigns it the Lisp
value.

Has anyone tried this? I'd be thankful for any ideas and pointers.

Thanks,
Manuel