maybe there is a better way but you can write a little wrapper that changes the handler:

;; --- wrap.rkt
 (require racket/base)
 (define old-handler (current-load/use-compiled))

  (lambda args
    (printf "inside handler ~a\n" args)
    (apply old-handler args))))

start with
racket -f wrap.rkt -t <your-file.rkt>


On Wed, 16 Jan 2013 18:49:12 +0100, Dan Liebgold <> wrote:

Does anyone know if there's a way to replace current-load/use-compiled at
startup time without changing and rebuilding executables?

Tobias Hammer
DLR / Institute of Robotics and Mechatronics
Muenchner Str. 20, D-82234 Wessling
Tel.: 08153/28-1487
 Racket Developers list:

Reply via email to