This is the mail archive of the guile@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: structs, records, SMOBs etc.



jimb@red-bean.com writes:
> 
> In what sense are smobs dynamic that records are not?  The unique tags
> upon which records are built are allocated when the record declaration
> is evaluated.  So the two seem pretty similar to me.

Well, SMOBs each have a unique type tag, wheras records use a Scheme
object as the type identifier, and all have the same type tag. It
seems to me that this has better implications for how well heap
freezing will work, as the original poster suggested, but I could be
wrong.

 - Maciej