bugKawa - Bugs: bug #4881, lambda expr within...

 
 

bug #4881: lambda expr within define-simple-class

Submitter:  Chris Dean <ctdean>
Submitted:  Thu 21 Aug 2003 07:28:23 PM UTC
   
 
Category:  Scheme language Severity:  2 - Minor
Item Group:  Compile-time exception Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 28 Jun 2005 12:07:02 AM UTC, comment #3: 

I checked in fixes for this.

Per Bothner <bothner>
Group administrator
Fri 22 Aug 2003 04:29:40 PM UTC, comment #2: 

We do have a workaround now, thanks.  The actual code uses filter-map and a lambda (instead of returning the lambda expression).   By "unrolling" this to (filter ... (map ...)) the code compiles fine - presumably because map is cleverly optimizing the lambda exp and inlining the code.

Chris Dean <ctdean>
Fri 22 Aug 2003 06:11:21 AM UTC, comment #1: 

I've reproduced the problem, but it doesn't look like
a simple fix.  (I'm guessing multiple fixes are needed.)
How urgent in this for you?  Do you have a work-around?

Per Bothner <bothner>
Group administrator
Thu 21 Aug 2003 07:28:23 PM UTC, original submission:  

The attached file generates a NPE when compiled:

java.lang.NullPointerException
        at gnu.expr.LambdaExp.allocChildClasses(LambdaExp.java:936)
        at gnu.expr.ClassExp.compile(ClassExp.java:372)

Chris Dean <ctdean>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #615:  Foo.scm added by ctdean (121B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Date Changed by Updated Field Previous Value => Replaced by
2005-06-28 bothner StatusNone Fixed
    Open/ClosedOpen Closed
2003-11-01 bothner CategoryNone None
    Severity3 - Normal None
    Item GroupNone None
    Assigned toNone None

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code