[gambit-list] Figuring out opaque:, and macros expanding to macros

Mikael mikael.rcv at gmail.com
Fri May 2 05:31:40 EDT 2014


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 at 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 at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20140502/ac23aba0/attachment.htm>


More information about the Gambit-list mailing list