diff --git a/collects/swindle/tiny-clos.ss b/collects/swindle/tiny-clos.ss index bb2462bb1d..d3342b915e 100644 --- a/collects/swindle/tiny-clos.ss +++ b/collects/swindle/tiny-clos.ss @@ -2111,6 +2111,9 @@ ;; matter? ;; ELI: changed the order so it fits better the expected results. (cond [(instance? x) (instance-class x)] + [(struct? x) + (let-values ([(type _) (struct-info x)]) + (if type (struct-type->class type) ))] [(procedure? x) (cond [(parameter? x) ] [(primitive? x) ] [else ])] @@ -2145,10 +2148,6 @@ (if (file-stream-port? x) )] [(output-port? x) (if (file-stream-port? x) )] - ;; MzScheme stuff - [(struct? x) - (let-values ([(type _) (struct-info x)]) - (if type (struct-type->class type) ))] [(void? x) ] [(box? x) ] [(weak-box? x) ]