(provide fish%) ought to work. Classes created with racket/class are values, just like numbers, strings, and functions, so you can provide them like you would other values.
On Wednesday, October 2, 2019 at 1:09:40 PM UTC-7, Tim Meehan wrote: > > Say for instance, I have a class in "tastyfish.rkt" > > #lang racket > (require racket/class) > > ; What `provide` statement would I put here so that another module > ; (like "market.rkt" for instance) can require fish%? > > (define fish% > (class object% > (super-new) > (init size) > (define current-size size) > (define/public (get-size) > current-size))) > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/93a0b623-a91b-42ed-a262-23915a8aa1b8%40googlegroups.com.