bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #17984] Compile time error in expansion of hygienic macr


From: Chris Wegrzyn
Subject: [Bug-kawa] [bug #17984] Compile time error in expansion of hygienic macros ending in literals
Date: Thu, 12 Oct 2006 17:33:37 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

URL:
  <http://savannah.gnu.org/bugs/?17984>

                 Summary: Compile time error in expansion of hygienic macros
ending in literals
                 Project: Kawa
            Submitted by: cwegrzyn
            Submitted on: Thursday 10/12/2006 at 17:33
                Category: Scheme language
                Severity: 3 - Normal
              Item Group: Compile-time exception
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

When a hygienic macro template is of the form (begin <statements>
"constant"), the compiler fails with a "body is not a proper list" error. No
error occurs if begin is replaced by a function, such as list. However, I
have seen it occur when function calls are nested in begin. This appears to
affect all versions from 1.8 onward. I am currently testing against r5517 of
the trunk.

I have attached a test case and a patch. The test case includes three
expressions, two that succeed and one that fails. The first and last of these
should evaluate equivalently, I believe, and highlights the main problem. The
patch is against r5517 of the trunk. I don't know if it is the best way to
solve the problem, but it appears to work without causing any other problems.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thursday 10/12/2006 at 17:33  Name: macro-literal-end.scm  Size: 767B  
By: cwegrzyn
test case
<http://savannah.gnu.org/bugs/download.php?file_id=10954>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?17984>

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





reply via email to

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