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: Thu, 13 Jan 2005 02:56:43 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803

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-13 02:56 (GMT)
    _______________________________________________________

             Assigned to:                    None -> bothner                

    _______________________________________________________

Follow-up Comment:
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)

==============================================================================
 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: None
                 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: 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]