From _deepfire at feelingofgreen.ru Thu Jun 30 08:41:11 2011 From: _deepfire at feelingofgreen.ru (Samium Gromoff) Date: Thu, 30 Jun 2011 12:41:11 +0400 Subject: [fset-devel] Rereading reader bug for collections with non-NIL defaults. Message-ID: <87ei2b4spk.fsf@auriga.feelingofgreen.ru> Scott, Evaluation of this form fails with an error: (with-standard-io-syntax (let ((*readtable* (copy-readtable *readtable*)) (v (with-default (map) (set)))) (fset::fset-setup-rereading-readtable *readtable*) (with-input-from-string (s (with-output-to-string (s) (write (list v) :stream s))) (read s)))) ..whereas this succeeds: (with-standard-io-syntax (let ((*readtable* (copy-readtable *readtable*)) (v (map))) (fset::fset-setup-rereading-readtable *readtable*) (with-input-from-string (s (with-output-to-string (s) (write (list v) :stream s))) (read s)))) ...which probably suggests that the reader hasn't been conditioned to take care of the trailing "/foo" syntax. -- regards, Samium Gromoff -- "Actually I made up the term 'object-oriented', and I can tell you I did not have C++ in mind." - Alan Kay (OOPSLA 1997 Keynote) From Scott at sympoiesis.com Thu Jun 30 22:04:24 2011 From: Scott at sympoiesis.com (Scott L. Burson) Date: Thu, 30 Jun 2011 15:04:24 -0700 Subject: [fset-devel] Rereading reader bug for collections with non-NIL defaults. In-Reply-To: <87ei2b4spk.fsf@auriga.feelingofgreen.ru> References: <87ei2b4spk.fsf@auriga.feelingofgreen.ru> Message-ID: On Thu, Jun 30, 2011 at 1:41 AM, Samium Gromoff <_deepfire at feelingofgreen.ru> wrote: > Scott, > > Evaluation of this form fails with an error: > [snip] > ...which probably suggests that the reader hasn't been conditioned > to take care of the trailing "/foo" syntax. Thanks for the bug report! I think it's the first that's ever been sent to this list :-) So you're actually using the reader macros? I wasn't sure anyone would. (I haven't even been using them myself.) Do you need a fix quickly? -- Scott