Guile Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating environments/frames ?
Han-Wen Nienhuys <email@example.com> writes:
> I am trying to integrate GUILE into LilyPond, and I have questions.
> Please forgive, I am a newbie: I have never really used Scheme.
Good luck to you. I will try to help.
> I want to integrate scheme frames into C++ classes, in the following
> manner: there are classes Paper and Graphical_object (with concrete
> derivations Beam and Stem), that currently basically look like
I can't tell from your post why you want to integrate frames into your
application. Usually these are Scheme data structures that are
manipulated only by the Scheme system. I think there is probably a
different way to accomplish your goal that uses guile in a more
> How do I do this?
I didn't completely understand from your post what you are trying to
accomplish, so I will try to read between the lines and make some
proposals. If I'm completely missing the point, I apologize in
First, it sounds like you want to have two smobs, one for
Graphical_Object and one for Paper.
I think you also want to have primitive procedures that perform the
; returns a list of all graphical objects contained in PAPER
; returns the paper associated with a graphical objec
And then also some primitives that allow the programmer to have
access to other attributes of PAPER and GRAPHICAL-OBJECT.
I think you are going to have to develop an approach for dealing with
the GC of your objects. What happens if a Scheme wrapper around one
of your objects lives longer than the object it's wrapping? (Emacs
has to deal with this issue with buffers; thus the notion of
If you can give a more general description of what you are trying
to do, maybe I can help with more specific suggestions.
Hofstadter's Law: It always takes longer than you expect, even when you
take into account Hofstadter's Law.
Guile Home |
Main Index |