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.


Maciej Stachowiak <mstachow@mit.edu> writes:

> If whatever replaces structs and records wants to replace smobs as
> well, it is important (IMO) to provide for one important property of
> smobs, which is the ability to almost trivially wrap C structures as
> smobs. This is very important, IMO, for wrapping existing code to work
> with Guile.

I agree.

(My opinion is that we should keep the smobs as an efficient low-level
 mechanism.  The kind of replacement for the structs which we are
 talking about gives overhead in the garbage collector.  (But this
 overhead could probably be made small for most object types!))

/mdj