Re: [gtk-list] Re: A type system for high-level interfaces



Maurizio Vitale <Maurizio.Vitale@esat.kuleuven.ac.be> writes:
> 
> > > Making those symbols part of a gtk module (or prefixed by gtk:) would
> > > help alleviating the name pollution problem.
> > 
> > Gtk already has to keep the namespace clean, so that wouldn't be a
> > problem in Scheme, I think.
> 
> What I meant was that if you've somewhere something to the effect of
> (define toplevel GTK_TOPLEVEL) then the user cannot bind anything else 
> to toplevel, while if you seize all identifiers starting with gtk: for 
> your interface you've much less problems.

The enumeration values would have their usual Gtk names, I think.
Like GTK_WINDOW_TOPLEVEL, GTK_WINDOW_DIALOG.  So we would have code
to effect of

    (define GTK_WINDOW_TOPLEVEL 0)
    (define GTK_WINDOW_DIALOG 1)

Or maybe with dashes in place of the underscores.



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