From 75fec925a03b8474a9aaad27e5be1f982f025388 Mon Sep 17 00:00:00 2001 From: Hans Dijkema Date: Wed, 9 Jul 2025 17:40:15 +0200 Subject: [PATCH] . --- scribblings/class.scrbl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scribblings/class.scrbl b/scribblings/class.scrbl index c06a15a..885e196 100644 --- a/scribblings/class.scrbl +++ b/scribblings/class.scrbl @@ -37,6 +37,11 @@ Similar to @racket[send], but uses a cleaner Racket-style method call syntax. Dispatches to either Roos or Racket based on the object type.} @examples[ +#:eval (make-base-eval '(require roos/class)) +(def-roos (t x) this (supers) + (y x) + ((f a) (* a x))) +(define o (new t 5)) (-> o f 3) ; → 15 ] @@ -93,10 +98,5 @@ Otherwise, the standard @racket[new] from @racket[racket/class] is used, support The module includes an internal test suite using RackUnit. It validates consistent behavior of @racket[send], @racket[->], and @racket[new] across both Racket classes and Roos classes. -@examples[ -(module+ test - (require rackunit) - ...) -] @; End of documentation