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

Attachment: signature.asc
Description: This is a digitally signed message part.


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to