Re: LOCALLY-ENABLE-SQL-READER-SYNTAX doc error?

Marcus Pearce <[email protected]> Tue, 17 Apr 2007 16:01:38 +0100 (BST)
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
On Mon, 16 Apr 2007, Edi Weitz wrote:

> On Mon, 16 Apr 2007 12:04:04 -0700, Cyrus Harmon <ch-clsql-dl6SmSK5uza1Z/[email protected]> wrote:
>
>> On a related note, and perhaps this should be on clsql-help, I seem
>> to be having trouble getting the reader syntax working. If I delete
>> a fasl for a file with the #.(LOCALLY-ENABLE-SQL-READER-SYNTAX) and
>> then reload the asdf system associated with it, it compiles but
>> gives me all sorts of warnings about "[=" and friends being
>> undefined variables. This is with SBCL 1.0.4.89. ISTR that this used
>> to work, but it's been a while since I've looked at this. Any
>> suggestions?
>
> I think this broke (at least for some people) in one of the previous
> releases.  You'll find evidence of this in the clsql-help archives
> IIRC.  I haven't yet found the time to look into it.

For the record, I contributed a couple of patches that changed the
implementation of the reader syntax slightly. The modifications
appeared in CLSQL 3.7.4. The patches and the motivations for them can
be found here:

   http://lists.b9.com/pipermail/clsql-devel/2006-September/000651.html
   http://lists.b9.com/pipermail/clsql-devel/2006-October/000654.html

Also note that, for compatibility with Lispworks CommonSQL:

1. the reader syntax is initially disabled[1,2];
2. the intended use of the syntax within files is as follows[3,4]:

    #.(locally-enable-sql-reader-syntax)

    <code using [...] syntax>

    #.(restore-sql-reader-syntax-state)

Personally, I only use {en,dis}able-sql-reader-syntax at the repl.

Cheers, 
Marcus

[1] http://www.lispworks.com/documentation/lw50/LWUG/html/lwuser-276.htm
[2] http://clsql.b9.com/manual/ref-syntax.html
[3] http://www.lispworks.com/documentation/lw50/LWUG/html/lwuser-284.htm
[4] http://clsql.b9.com/manual/locally-enable-sql-reader-syntax.html