[Openmcl-devel] Using readtables for only one library

Tim Bradshaw tfb at tfeb.org
Sat May 8 17:21:42 UTC 2010


On 8 May 2010, at 17:05, Daniel Weinreb wrote:

> Suppose I want to write a Lisp library, that's in its own package,
> and uses its own readtable.  I want to be able to load it into
> Lisp without breaking other packages.  So I don't want
> to simply set *readtable*. Surely there mut be some kind
> of standard/idiomatic way to do this in Common Lisp?
> (I haven't used special readtables in decades!)

LOAD and COMPILE-FILE bind *READTABLE* and *PACKAGE* to themselves, so  
so long as you are careful to copy the readtable rather than modifying  
the current one, then you're OK.  WITH-STANDARD-IO-SYNTAX is also your  
friend.



More information about the Openmcl-devel mailing list