bugKawa - Bugs: bug #31251, defvar

 
 

bug #31251: defvar

Submitter:  Helmut Eller <ellerh>
Submitted:  Tue 05 Oct 2010 09:09:40 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Oct 2010 10:59:20 PM UTC, comment #3: 

I checked in a fix.  Somewhat tricky, since it depended on two different bugs.

Per Bothner <bothner>
Group administrator
Wed 06 Oct 2010 08:12:56 AM UTC, comment #2: 

Had to do with something in my .kawarc.scm.  But it also shows up with this file:

(define (baz) (let loop () 1))
(define-variable *foo* 2)

and in the interpreter:

#|kawa:1|# (require "/tmp/x.scm")
#|kawa:2|# *foo*
Invalid parameter, was: gnu.math.IntNum cannot be cast to gnu.expr.Special
java.lang.ClassCastException: gnu.math.IntNum cannot be cast to gnu.expr.Special
        at atInteractiveLevel$2.run(stdin)
        at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:284)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
        ...


Helmut Eller <ellerh>
Tue 05 Oct 2010 09:58:26 PM UTC, comment #1: 

Hm.  It seems to work with the Subversion version.  Could you try again?

Per Bothner <bothner>
Group administrator
Tue 05 Oct 2010 09:09:40 AM UTC, original submission:  

After loading this file:

(define-variable foo '())

I get an exception:

#|kawa:1|# (require "/home/helmut/hacking/kawa/test-defvar.scm")
#|kawa:2|# foo
Invalid parameter, was: gnu.lists.LList cannot be cast to gnu.expr.Special
java.lang.ClassCastException: gnu.lists.LList cannot be cast to gnu.expr.Special
        at atInteractiveLevel$5.run(stdin)
        at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:284)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
        at kawa.Shell.run(Shell.java:281)
        at kawa.Shell.run(Shell.java:194)
        at kawa.Shell.run(Shell.java:175)
        at kawa.repl.main(repl.java:847)
#|kawa:3|#

Helmut Eller <ellerh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bothner (Posted a comment)
  • -email is unavailable- added by ellerh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-06 bothner StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2010-10-05 bothner StatusNone Works For Me
        Assigned toNone bothner

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code