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
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
2 matches
Mail list logo