This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SCM_SMOB_TAG smob abstraction


Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se> writes:

> Jorgen "forcer" Schaefer <forcer@mindless.com> writes:
> 
> > To faciliate an abstraction for smob tag retrieval similar to the
> > SCM_SMOB_DATA functions, it would be nice to have a SCM_SMOB_TAG
> > macro (patch below).
> 
> I'm not so sure about that.
> 
> The type of the object should probably not be regarded as part of the
> smob abstraction but rather as a part of the type system.
> 
> 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.
	-forcer

-- 
((email . "forcer@mindless.com")       (www . "http://forcix.cx/")
 (irc   . "forcer@#StarWars (IRCnet)") (gpg . "/other/forcer.gpg"))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]