chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Syntax-case question


From: William Ramsay
Subject: Re: [Chicken-users] Syntax-case question
Date: Fri, 12 Oct 2007 09:26:58 -0400
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

They are at the top level in this case, but they are in outer binding forms in other parts of the porogram.

felix winkelmann wrote:
On 10/12/07, William Ramsay <address@hidden> wrote:
Hi,

Now I'm confused.    I'm writing a program that uses Gtk and Imlib2.
Imlib2 requires syntax-case, but when I add syntax-case I get errors
with my define statements.   For instance, my program starts with:

     (define win-group (gtk_window_group_new))
     (define window (gtk_window_new GTK_WINDOW_TOPLEVEL))
     (gtk_window_group_add_window win-group window)

This works fine until I add (requires-extension syntax-case) and then I
get a compile error:

    Error: invalid context for definition: (define win-group
(gtk_window_group_new))

What am I doing wrong and how do I fix it?


Are the defines embedded into an outer binding form, or do they
exist at toplevel? syntax-case is stricter about the placement
of define forms in binding forms.


cheers,
felix





reply via email to

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