[armedbear-devel] jss issues
Mark Evenson
evenson at panix.com
Fri Jan 27 09:04:30 UTC 2012
The NEW symbol is in the JSS package. JSS:ENSURE-COMPATIBILITY will import this symbol ( and others) into CL-USER.
In your example session, when you try to use the SHARPSIGN-DOUBLE-QUOTE macro, your repl environment is still the one from the failing CL-USER:NEW call, so the REQUIRE of JSS has not occurred (this is denoted by the "[1]" in the debugger output.
At least that's what I think is happening, as I don't have an ABCL instance running on iOS to test.
I'll clarify the JSS README when I get the chance.
Sent from my iPad
On Jan 27, 2012, at 2:27 AM, Brian Guarraci <brian at ops5.com> wrote:
> Hi,
>
> I recently built and ran abcl and jss, and hit some strange issues. I wonder if there's something wrong with the docs or my environment:
>
> [tried using latest bin release and svn repo codes]
>
> $cd abcl
> $./abcl
>
> CL-USER(1): (require 'abcl-contrib)
> Adding jar:file:/home/bguarrac/src/abcl-src-1.0.1/dist/abcl-contrib.jar!/jss/ to ASDF.
> Adding jar:file:/home/bguarrac/src/abcl-src-1.0.1/dist/abcl-contrib.jar!/asdf-jar/ to ASDF.
> Adding jar:file:/home/bguarrac/src/abcl-src-1.0.1/dist/abcl-contrib.jar!/asdf-install/ to ASDF.
> Adding jar:file:/home/bguarrac/src/abcl-src-1.0.1/dist/abcl-contrib.jar!/abcl-asdf/ to ASDF.
> ("MOP" "CLOS" "PRINT-OBJECT" "FORMAT" "ASDF" "ABCL-CONTRIB")
> CL-USER(2): (require 'jss)
> ("LOOP" "COMPILER-TYPES" "KNOWN-FUNCTIONS" "DUMP-FORM" "OPCODES" "JAVA" "KNOWN-SYMBOLS" "COMPILER-PASS1" "COMPILER-PASS2" "JVM" "JSS")
> CL-USER(3): (let ((sw (new 'StringWriter)))
> (#"write" sw "Hello ")
> (#"write" sw "World")
> (print (#"toString" sw)))
> #<THREAD "interpreter" {61181C24}>: Debugger invoked on condition of type UNDEFINED-FUNCTION
> The function NEW is undefined.
> Restarts:
> 0: CONTINUE Try again.
> 1: USE-VALUE Specify a function to call instead.
> 2: RETURN-VALUE Return one or more values from the call to NEW.
> 3: TOP-LEVEL Return to top level.
>
> CL-USER(6): (new 'StringWriter)
> #<THREAD "interpreter" {61181C24}>: Debugger invoked on condition of type UNDEFINED-FUNCTION
> The function NEW is undefined.
> Restarts:
> 0: CONTINUE Try again.
> 1: USE-VALUE Specify a function to call instead.
> 2: RETURN-VALUE Return one or more values from the call to NEW.
> 3: TOP-LEVEL Return to top level.
> [1] CL-USER(7): (jss:new 'StringWriter)
> #<java.io.StringWriter {49E6F7CB}>
>
> [1] CL-USER(8): (#"write" (jss:new 'StringWriter) "hello")
>
> #<THREAD "interpreter" {61181C24}>: Debugger invoked on condition of type READER-ERROR
> No dispatch function defined for #\"
> Restarts:
> 0: ABORT Return to debug level 1.
> 1: CONTINUE Try again.
> 2: USE-VALUE Specify a function to call instead.
> 3: RETURN-VALUE Return one or more values from the call to NEW.
> 4: TOP-LEVEL Return to top level.
>
> Thanks!
> Brian
> _______________________________________________
> armedbear-devel mailing list
> armedbear-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20120127/1ecce818/attachment.html>
More information about the armedbear-devel
mailing list