Hi,

I've been working on the documentation for the object systems provided in SchemeSpheres here: http://www.schemespheres.org/guides/en/object-systems

I'll copy the meaning of the flag attributes and link to this documentation as well for reference.






        Álvaro Castro-Castilla
          Digital Experiences.   --   visit The Blog





On Fri, May 2, 2014 at 11:31 AM, Mikael <mikael.rcv@gmail.com> wrote:
Dear Alvaro, can you please write up your insights on define-type on the Wiki? I believe there's a page already somewhere so it's just about clarifying and adding. Mikael


2014-05-01 10:45 GMT+02:00 Álvaro Castro-Castilla <alvaro.castro.castilla@gmail.com>:

The opaque: flag causes a change in the behavior of equal? and equal?-hash .  When the opaque: flag is not used, two structures are equal? if they have the same type and each field is equal? in both structures.  When the opaque: flag is used, two structures are equal? only if they are eq? (i.e. the same instance).


 
Awesome and very useful!
So the code that checks for the opaque: flag in the Gambit sources is found in the equal? and equal-hash? definitions...

Thank you, Marc

_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list