This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Re: Patch to make guile-gtk work with upcoming guile-1.4
Marius Vollmer <mvo@zagadka.ping.de> writes:
> Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
>
> > The `scm_make_smob_type_mfpe' function has not been mentioned in the
> > NEWS file because it might become deprecated in next release of Guile.
>
> But smob.h says:
>
> /* These next two functions are the supported way to create new SMOB types.
>
> scm_make_smob_type is useful if there are no special smob functions
> and the defaults work for mark,free,print,equal_p, or you want to use
> scm_set_smob_{mark,free,print,equalp}, below.
>
> scm_make_smob_type_mfpe is ideal if you need to set one or more of
> the special smob functions-- use NULL for when the default function
> is fine
> */
>
> The comment should be updated, probably.
Or we should just decide not to depracate the _mfpe piece. I think it's
imprudent to require the separate and redundant calls to scm_set_smob_
when the common usage suggests the _mfpe interface that permits
eliminating those redundancies.
Greg