bugKawa - Bugs: bug #44230, slot-ref not working in r7rs mode

 
 

bug #44230: slot-ref not working in r7rs mode

Submitter:  Helmut Eller <ellerh>
Submitted:  Thu 12 Feb 2015 08:20:06 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
   

Fri 13 Feb 2015 03:50:01 AM UTC, comment #1: 

The problem was that the Scheme.r7rsInstance field wasn't final, so it didn't get found when trying to compile a literal reference to it.  I fixed that, and did some minor cleanup.

Per Bothner <bothner>
Group administrator
Thu 12 Feb 2015 08:20:06 AM UTC, original submission:  

Compiling this file:

(define (bar x) (slot-ref x 's))


produces this error:

shell> kawa --version --r7rs -C y.scm
Kawa 2.0.1 (revision 7749:8288M)
Copyright (C) 2014 Per Bothner
(compiling y.scm to y)
Exception in thread "main" java.lang.Error: kawa.standard.Scheme does not implement Externalizable
        at gnu.expr.LitTable.error(LitTable.java:103)
        at gnu.expr.LitTable.writeObject(LitTable.java:271)
        at gnu.expr.LitTable.emit(LitTable.java:66)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2281)
        at gnu.expr.Compilation.process(Compilation.java:2019)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:292)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:274)
        at kawa.repl.compileFiles(repl.java:835)
        at kawa.repl.processArgs(repl.java:445)
        at kawa.repl.main(repl.java:882)
[Exit 1]


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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-13 bothner StatusNone Fixed
        Assigned toNone bothner
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code