[racket] Compile-time vs. Runtime Calls to the Same Macro
I didn't try to understand your code in any detail (if this comment
isn't helpful and no one else takes you up on this, try making a
smaller example), but do you know about
(require (for-template ...))
Robby
On Sat, Feb 26, 2011 at 8:54 PM, Sina K. Heshmati <sina at khakbaz.com> wrote:
> "Sina K. Heshmati" <sina at khakbaz.com> said:
>
>> L.S.,
>>
>> #lang racket
>> (require
>> (for-syntax "check.rkt")
>> "check.rkt")
>>
>> (define-for-syntax a
>> (qualify-member #'(public static a 0))) ;; Phase 1 call FAILS
>>
>> (define b
>> (qualify-member #'(public static b 10))) ;; Phase 2 call does NOT FAIL
>>
>> Any idea how I can make phase 1 calls to qualify-member not fail?
>
> It is worth mentioning that the compile-time call to qualify-member fails as soon as I add literal ids to the generated syntax-case. That's why I'm suspecting this might be a bug in Racket.
>
> Kind regards,
> Sina
>
>> The file check.rkt that contains the qualify-member macro is pasted below.
>> For other source files, please refer to:
>> https://github.com/sindoc/objective-racket/tree/master/src/objective-racket
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>