Hi,

according to the docs 
(https://docs.racket-lang.org/xrepl/index.html#%28xrepl._require-reloadable%29) 
I would have assumed that when I do 

> ,require-reloadable "code.rkt"

that I can use whatever "code.rkt" provides, the same way as when I do

> ,require "code.rkt"

However, when I do just the ,require-reloadable I have to follow it up with 
a simple ,require for the provides to be available. Example: if code has 
(provide my-function), then I have (where ,rr is the short-form for 
,require-reloadable and ,r for ,require):

> ,rr "code.rkt"                
> (my-function args)
; my-function: undefined;
...
> ,r "code.rkt"
> (my-function args)
; Works fine, and seems like I can reload it afterwards

Is this how it should be - and if so, why? Might be worth pointing out in 
the docs if this behavior is expected, as I kept closing and restarting the 
repl to reload my changes since I couldn't get ,require-reloadable to work.

Cheers,
Marc

-- 
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/74ff9ef8-c66d-4e8c-9595-2bd40e30f761%40googlegroups.com.

Reply via email to