Let's say I have a module that looks like

(module a racket
   (provide result)
   (print "Annoying print line!")
   (define result 2))

and I'd like the value of result in another module, so in another module, I 
write

(require a)

or

(dynamic-require ''a 'result)

In both cases, I get the value of result, but by requiring the module, the 
print line "Annoying print line!" will show up on my screen and be part of the 
output of the program.

Is there a way to get the value of result from module a without triggering the 
print, or hiding it in some way? I've played around with print-handlers, but it 
seems anything I do outside of module a won't affect the printer inside module 
a.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to