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] |
> > 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. I don't see much real difference. An instance of a SMOB type is a first-class object, so if we can dump real numbers, then we should be able to dump other smobs. But I certainly haven't thought it through carefully.