Paul Tarvydas <paultarvydas@gmail.com> writes:
On 14-03-14 12:57 PM, Pascal J. Bourguignon wrote:
I'm writing diagram-compilers that emit CL. It seems to me that each emitted lump of code should be in it's own package. Am I thinking about this "wrong"?
Yes. Packages are not designed or not practical for fine grained name scoping. Furthermore, packages are used only to _READ_ symbols. You should not have any need of them when generating code. That is, at most, you would just intern generated symbols in a specific package to avoid poluting some other package, and you may want to manage the export list of a public package for the publicly accessible API to your generated code. -- __Pascal Bourguignon__ http://www.informatimago.com/ "Le mercure monte ? C'est le moment d'acheter !"