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

 
 

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

Submitted by:  Chris Dean <ctdean>
Submitted on:  Thu 21 Aug 2003 07:28:23 PM UTC  
 
Category: Scheme languageSeverity: 2 - Minor
Item Group: Compile-time exceptionStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

I checked in fixes for this.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 28 Jun 2005 12:07:02 AM UTCbothnerStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sat 01 Nov 2003 07:00:12 AM UTCbothnerCategoryNone=>(Error - Not Found)
  Severity3 - Normal=>(Error - Not Found)
  Item GroupNone=>(Error - Not Found)
  Assigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1