Re: [racket-users] Understanding prop:impersonator-of

2018-01-25 Thread Philip McGrath
This is because `prop:impersonator-of` only applies to two instances that inherit the property from the same structure type. (As the docs put it, "The result value must have the same prop:impersonator-of and prop:equal+hash property values as the original structure, if any, and the property values

[racket-users] Understanding prop:impersonator-of

2018-01-25 Thread Daniel Feltey
I'm trying to understand the use of the prop:impersonator-of struct property, but the following program doesn't work the way I would have expected: #lang racket (struct our-impersonate-proc (f orig) #:property prop:impersonator-of (lambda (x) (displayln 'hi) (our-impersonate-proc-orig x)) #:pro