Hello,

For ease of exporting wrapper functions I am trying to do something like

#lang racket

<class system stuff to wrap>

(module wrap racket or module+ wrap
  (provide (all-defined-out))
  <plain function wrappers>)

(require 'wrap)
(provide (all-from-out 'wrap))

With (module wrap racket ...), (require 'wrap) works but the stuff to be
wrapped isn't visible in the module, which is what the module+ form is for,
but then there doesn't seem to be a way to require wrap then. It seems to
require REPL or another file using (submod "<file>" wrap).

Obviously I can just split the code into two files in the first place, but
then what was the intended use for modules or submodules vs. just plain
files?
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to