From: Ken A. <kan...@bb...> - 2003-03-31 21:40:56
|
At 04:12 PM 3/31/2003 -0500, Timothy Hickey wrote: >Could you try loading it without the compiled class, i.e., use > (evnironment-import "jlib/JLIB.scm") >instead of > (environment-import jlib.JLIB.class) OK, if i do (environment-import "jlib/JLIB.scm" "jl:") it works. I'm sure the compiler is what the problem is. >The problem might be in the interaction of the compiler with the module system... > >When I use "jlib/JLIB.scm" instead of jlib.JLIB.class, everything works beautifully... > >I'll look into why the compiler isn't working will with modules..... > >---Tim--- > > >On Monday, March 31, 2003, at 03:50 PM, Ken Anderson wrote: > >>I guess i don't understand how these new environmnets work. When i load >>this file, and run >>(interruptButton) >>I get the error >>(jl:button "Interrupt" Color.red$ (jl:action (lambda interruptButton~2 >>(e)...) )) >> t = Thread[main,5,main] >> >> ==================================== >>SchemeException:[[ERROR: undefined variable "processConArgs"""]] >>What am i doing wrong? >>(environment-import jlib.JLIB.class "jl:") >>(import "java.awt.Color") >>(define (interruptButton) >> ;; Provides an interrupt button for this thread. >> ;; JScheme execution will be interrupted on the next procedure call. >> (let* ((t (Thread.currentThread)) >> (win (jl:window "Interrupt" >> (jl:border >> (jl:north (jl:label (.toString t))) >> (jl:center (jl:button "Interrupt" >> Color.red$ >> (jl:action >> (lambda (e) >> (Scheme.interrupt t))))))))) >> (.pack win) >> (.show win))) >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: ValueWeb: >>Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >>No other company gives more support or power for your dedicated server >>http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >>_______________________________________________ >>Jscheme-user mailing list >>Jsc...@li... >>https://lists.sourceforge.net/lists/listinfo/jscheme-user > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >Jscheme-user mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-user |