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.


mikel@opal.co.il (Michael N. Livshin) writes:

>     Structs seem to be a low level type-definition mechanism
>     which has decided in mid-way to become an object system.
>     With a MOP.

How did you arrive at this?

We're going to implement an object system on top of the structs.  When
we've replaced the structs, the object system can work on top of the
new representation.

>   Records.
>     I think, this is (potentially) the best of the three.  To make
>     it so, records need to be implemented in the Guile core, and
>     the C interface to them needs to allow user GC hooks and binary
>     data.  Another win of this would be a unified type-definition
>     mechanism for both C and Scheme levels.

Yes.  This is what I referred to as a "functionally similar"
replacement for the structs in a recent letter.

/mdj