bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #11859] fluid-let misbehaves in upward-only continuation


From: Per Bothner
Subject: [Bug-kawa] [bug #11859] fluid-let misbehaves in upward-only continuation
Date: Tue, 12 Apr 2005 18:36:22 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Firefox/1.0.2 Fedora/1.0.2-1.3.1

Update of bug #11859 (project kawa):

                  Status:                 Invalid => Postponed              

    _______________________________________________________

Follow-up Comment #2:

There actually is a reasonable way to handle lexical definitions:
If the compiler sees a fluid-let that rebinds a lexically defined VAR:
(let ((VAR INIT))
  ... VAR ...
  (set! VAR ...)
  (fluid-let ((VAR VAL))
     ... VAR ...)))
it rewrites to use a ThreadLocation.  Expressed using SRFI-39 parameter
objects, this would be:
(let ((VARP (make-parameter INIT)))
  ... (VARP) ...
  (VARP ...)
  (parameterize ((VARP VALUE))
     ... (VARP) ...)))
This isn't much different from the rewrite done when seeing a (location VAR).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11859>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]