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

 
 

bug #36596: fluid-let IllegalAccessException

Submitted by:  Charles Turner <charlest>
Submitted on:  Tue 05 Jun 2012 10:02:35 PM UTC  
 
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 Markup)
   

You are not logged in

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

 

Tue 01 Nov 2016 05:20:38 PM UTC, 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 01 Nov 2016 04:46:54 PM UTC, 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 01 Nov 2016 03:51:18 PM UTC, 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 05 Jun 2012 10:02:35 PM UTC, 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 01 Nov 2016 05:20:38 PM UTCbothnerStatusInvalid=>Postponed
    Tue 01 Nov 2016 03:51:18 PM UTCbothnerStatusNone=>Invalid
      Assigned toNone=>bothner

    Back to the top


    Powered by Savane 3.1-cleanup1