Re: [racket] Struct equality for foreign pointers

2010-11-24 Thread Matthew Flatt
At Mon, 22 Nov 2010 09:29:22 -0500, Eric Dobson wrote: > I am interfacing with a foreign library and have a datatype whose > representation in racket is a cpointer, where equality is ptr-equal?. > I want to make a struct encapsulating this using prop:equal+hash to > make struct equality match the f

[racket] Struct equality for foreign pointers

2010-11-22 Thread Eric Dobson
I am interfacing with a foreign library and have a datatype whose representation in racket is a cpointer, where equality is ptr-equal?. I want to make a struct encapsulating this using prop:equal+hash to make struct equality match the foreign library's equality operator. Is there a way to get somet