Is there (or, if not, could there be) a way to specify the inspector when
working with traits (from racket/trait)?

I can write

> (mixin () ()
>   (inspect #f)

  ... )

but "inspect" does not seem a valid clause inside the "trait" form. (I
could also imagine that this might need to be determined at the point when
I would call trait->mixin.)

Perhaps there is a way to do this already that I could figure out if I
played with the details of current-inspector and such? Really my only use
for inspectors thus far has been to make things be transparent.

My objective would be to use a class produced using traits as a super-class
with define-serializable-class*, and keeping the super-class transparent
would preserve automatic serialization (and incidental benefits, like
support for cycles of instances).

-Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to