bugKawa - Bugs: bug #36596, fluid-let IllegalAccessException

 
 

bug #36596: fluid-let IllegalAccessException

Submitted by:  Charles Turner <charlest>
Submitted on:  Tue Jun 5 22:02:35 2012  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Run-time exceptionStatus: Postponed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue Nov 1 17:20:38 2016, comment #3:

Right, but you can't "temporarily change" an immutable variable.

Though you could argue that in standard Scheme the definition of myfun isn't inherently immutable.

This gets into the tricky area of lexical scope vs dynamic environment. Fluid-let lives in the messy intersection between them. One day I may look at it more closely.

I guess "Postponed" is more appropriate Status.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Tue Nov 1 16:46:54 2016, comment #2:

Been a while :) -- but what I remember of fluid-let is that it should temporarily change the variable's binding within it's extent, and restore the original binding when the scope is closed.

So I /think/ I expected this to return 'inner.

Charles Turner <charlest>
Tue Nov 1 15:51:18 2016, comment #1:

I don't think this makes sense - though how dynamic variables interact with top-level (module-level) variables is a bit murky.

It probably should have a compile-time warning, at least.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Tue Jun 5 22:02:35 2012, original submission:

From Kawa v1.12

Charles Turner <charlest>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Nov 1 17:20:38 2016bothnerStatusInvalid=>Postponed
    Tue Nov 1 15:51:18 2016bothnerStatusNone=>Invalid
      Assigned toNone=>bothner

    Back to the top


    Powered by Savane 3.1-cleanup