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