Wow, I get some really weird stuff testing this with the latest trunk as follows. (I put his code in a file named yyy.lisp. I did not compile it. There is no yyy.fasl)<div><br></div><div><div><div>Blake-Mac-17:tmp blake$ abcl</div>
<div>Armed Bear Common Lisp 1.1.0-dev-svn-14015</div><div>Java 1.6.0_33 Apple Inc.</div><div>Java HotSpot(TM) 64-Bit Server VM</div><div>Low-level initialization completed in 0.369 seconds.</div><div>Startup completed in 1.371 seconds.</div>
<div>Type ":help" for a list of available commands.</div><div>CL-USER(1): (load "yyy.lisp")</div><div>T</div><div>CL-USER(2): (foo-bar-rb)</div><div>(foo-bar '(foo))</div><div><br></div><div>Maximum error depth exceeded (11 nested errors) with 'FASL version mismatch; found '57' but expected '39' in with-standard-io-syntax'.</div>
<div>CL-USER(3): </div></div><div><br></div><div>I don't get the whole FASL stuff.</div><div><br></div><div>Blake</div><div><br></div><div><br></div><br><div class="gmail_quote">On Mon, Jul 23, 2012 at 5:40 PM, Alessio Stalla <span dir="ltr"><<a href="mailto:alessiostalla@gmail.com" target="_blank">alessiostalla@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Jul 23, 2012 at 6:48 PM, Durward McDonell<br>
<<a href="mailto:durward.mcdonell@jhuapl.edu">durward.mcdonell@jhuapl.edu</a>> wrote:<br>
><br>
> Hello.<br>
><br>
> I believe I have found a bug in FASL loading, with respect<br>
> to *read-base* being reset. At least, I get the behavior I<br>
> expect in sbcl, and not in abcl.<br>
><br>
> Consider the following code:<br>
><br>
> (defmacro foo-bar (s)<br>
> `(sublis '((foo . bar)) ,s))<br>
><br>
> (defun foo-bar-rb ()<br>
> (let ((*read-base* #x10)<br>
> (it (read)))<br>
> (eval it)))<br>
><br>
> Load this code, then execute (foo-bar-rb).<br>
> It will wait for input. Type (foo-bar '(foo)).<br>
> I would expect this to evaluate to (bar), but<br>
> abcl gives a FASL version mismatch, where it<br>
> seems that it is reading the FASL in the new<br>
> base (16 instead of 10), and reports "found '56'<br>
> but expected '38' in sublis".<br>
<br>
</div>Hi!<br>
<br>
What FASL are you speaking of? There is nothing explicitly loading one<br>
in your code. Is this related to autoloading?<br>
<br>
Cheers<br>
Alessio<br>
<br>
_______________________________________________<br>
armedbear-devel mailing list<br>
<a href="mailto:armedbear-devel@common-lisp.net">armedbear-devel@common-lisp.net</a><br>
<a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel</a><br>
</blockquote></div><br></div>