This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: SCM_SMOB_TAG smob abstraction
forcer <forcer@mindless.com> writes:
> Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se> writes:
>
> > There already exists a macro for extracting the type of this kind of
> > objects: SCM_TYP16.
>
> I didn't know about SCM_TYP16, all i wanted was an easy way to
> check that a passed argument actually is the type (smob) i want.
>
> The documentation examples use SCM_CAR, which is suboptimal,
> imho, so it should be changed.
Yes.