bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bugs #11578] fluid-let in compiled modules


From: Per Bothner
Subject: [Bug-kawa] [bugs #11578] fluid-let in compiled modules
Date: Mon, 17 Jan 2005 08:02:01 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20050111

This is an automated notification sent by Savannah.
It relates to:
                bugs #11578, project Kawa

==============================================================================
 LATEST MODIFICATIONS of bugs #11578:
==============================================================================

               Posted by: Per Bothner <bothner>
               Posted on: 2005-01-17 08:01 (GMT)
    _______________________________________________________

                  Status:                    None -> Fixed                  

    _______________________________________________________

Follow-up Comment:
I just checked in a fix into CVS.

Please confirm that it works for you.

I also checked in the testcase.



==============================================================================
 OVERVIEW of bugs #11578:
==============================================================================

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

                 Summary: fluid-let in compiled modules
                 Project: Kawa
            Submitted by: dferreyra
            Submitted on: Thu 01/13/2005 at 01:02
                Category: Code generation
                Severity: 5 - Average
              Item Group: Unexpected result
                  Status: Fixed
                 Privacy: Public
             Assigned to: bothner
             Open/Closed: Open

    _______________________________________________________


It seems like the dynamic binding of fluid-let is not working quite right in
compiled modules.  Here's the basic code:



(define *VAR* 'A)

(define (get-var) *VAR*)

(define (check-fluid-let sym)

  (fluid-let ((*VAR* sym))

    (get-var)))



When called from the interpreter, (check-fluid-let 'Z) returns 'Z.  From
compiled code, this same call returns 'A.



Attached is a patch to the testsuite that demonstrates the bug.



Fluid-let is used in quite a few places in Merced Systems software---I think
this is the last issue that's keeping us from using the latest greatest Kawa
changes.



    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 01/17/2005 at 08:01       By: Per Bothner <bothner>
I just checked in a fix into CVS.

Please confirm that it works for you.

I also checked in the testcase.



-------------------------------------------------------
Date: Thu 01/13/2005 at 02:56       By: Per Bothner <bothner>
I've duplicated the problem and I think I understand what is happening, but I
have to think about what to do.



One work-around is to replace the define of *VAR* with:

(define-variable *VAR* 'A)







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 01/13/2005 at 01:02  Name: fluid-let-test.patch  Size: 1.29KB   By:
dferreyra
Patch to add fluid-let test to testsuite
<http://savannah.gnu.org/bugs/download.php?item_id=11578&item_file_id=2058>

==============================================================================

This item URL is:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11578>

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





reply via email to

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