bugKawa - Bugs: bug #18555, Cannot generate method parameters...

 
 

bug #18555: Cannot generate method parameters with syntax-case

Submitter:  Margus Freudenthal <margus>
Submitted:  Tue 19 Dec 2006 01:50:58 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Compile-time exception Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Dec 2006 01:52:16 PM UTC, comment #1: 

The unfinished sentece reads: "This macro fails."

Margus Freudenthal <margus>
Tue 19 Dec 2006 01:50:58 PM UTC, original submission:  

When generating methods with syntax-case, compiler gives error when I include parameter type.

This ma

(define-syntax do-class
  (lambda (x)
    (syntax-case x ()
      ((_ clname methodname param code ...)
       #`(define-simple-class clname ()
           ((methodname param :: <String>)
            code ...))))))


#|kawa:8|# (do-class Ohoo poo oo (display 'ohoooo) (newline))
<stdin>:6:31: '::' must follow parameter name

However, when I omit parameter type, it works.

Margus Freudenthal <margus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by margus (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code