Thanks,
make-sibling-inspector does what I want.
Jos
-Mensaje original-
De: Ben Greenman
Enviado el: 08 September 2019 01:20
Para: jos.k...@gmail.com
CC: Racket Users
Asunto: Re: [racket-users] transparency of structs?
I see the same results on Racket 7.0 and 6.5, so I don't think
I see the same results on Racket 7.0 and 6.5, so I don't think
anything has changed.
Maybe the trouble is that (make-inspector) makes a subinspector of
(current-inspector), which has the same value for both the main module
& the submodules.
Switching to (make-sibling-inspector) causes (struct?
Hi
Has something changed with transparency of structs?
I find the following:
#lang racket/base
(module a racket/base
(define inspector (make-inspector))
(define-values (descr constr pred acc mut)
(make-struct-type 's #f 2 0 #f '() inspector #f '(0)))
(define an-s (constr 'monkey
3 matches
Mail list logo