|
From: | AdriánMedraño Calvo |
Subject: | [Bug-kawa] [bug #47862] define-syntax does not accept formals when inside a define-library |
Date: | Thu, 05 May 2016 20:51:04 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL: <http://savannah.gnu.org/bugs/?47862> Summary: define-syntax does not accept formals when inside a define-library Project: Kawa Submitted by: medranocalvo Submitted on: Thu May 5 20:51:03 2016 Category: Scheme language Severity: 3 - Normal Item Group: Compile-time exception Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: The formal parameter may be specified to define-syntax when outside a define-library definition (Ex. 1) but, when inside define-library (Ex. 2) it throws the error: unbound location: lambda ;; Ex 1: outside define-library: (define-syntax (const1 stx) (syntax-case stx () ((_ c cs ...) (syntax c)))) (display (const1 0 1 2 3 4)) ;; Ex 2: inside define-library: (define-library (somelib) (import (scheme base) (kawa base)) (export const2) (begin (define-syntax (const2 stx) (syntax-case stx () ((_ c cs ...) (syntax c))))) (const2 0 1 2 3)) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47862> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |