gEDA-dev: [RFC] Guile Fluids in gEDA
Peter TB Brett
peter at peter-b.co.uk
Wed Jan 9 15:38:27 EST 2008
On Wednesday 09 January 2008 20:00:28 Steve Meier wrote:
> Peter,
>
> In general it looks good.
>
> How about making the function
>
> /* Return the fluid containing the active TOPLEVEL */
> SCM s_fluid_get_toplevel ();
>
> instead of
>
> /* Return the fluid containing the active TOPLEVEL */
> SCM s_fluid_toplevel ();
>
Thanks -- that should have been g_fluid_toplevel() instead of
g_fluid_toplevel.
Normally, it's not useful to handle the fluid directly. The fluid isn't the
TOPLEVEL -- it's an opaque Guile construct, which can give you a TOPLEVEL if
you ask it nicely.
You will notice that g_fluid_get_toplevel() returns a TOPLEVEL, as you'd
expect.
g_fluid_toplevel() is a sort of "singleton function". I gave it that name by
thinking of it AS the fluid, rather than as a function which returns the
fluid.
Does that make sense?
Peter
--
Peter Brett
Electronic Systems Engineer
Integral Informatics Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.seul.org/pipermail/geda-dev/attachments/20080109/da125898/attachment.pgp
More information about the geda-dev
mailing list