[racket] nested require modules and global variable

2011-12-19 Thread Danny Yoo
On Sunday, December 18, 2011, Niitsuma Hirotaka wrote: > Thank you. > I clearly understand. > > By the way, > Are there standard way exporting global variable from some module ? I usually avoid global name exports unless the name stands for a constant value. Otherwise, I may export a parameter

Re: [racket] nested require modules and global variable

2011-12-18 Thread Niitsuma Hirotaka
Thank you. I clearly understand. By the way, Are there standard way exporting global variable from some module ? > Does my expectation surprise you, or does this match what you'd expect as > well? _ For list-related administrative tasks: http://

Re: [racket] nested require modules and global variable

2011-12-18 Thread Danny Yoo
On Sunday, December 18, 2011, Niitsuma Hirotaka wrote: > How about this? > http://d.hatena.ne.jp/niitsuma/20081113/1324207362 > I add some comment > Ok, thanks for posting that code. Do you expect modules to be re-invoked on every require? I am trying to understand your concern about "valid beh

Re: [racket] nested require modules and global variable

2011-12-18 Thread Niitsuma Hirotaka
How about this? http://d.hatena.ne.jp/niitsuma/20081113/1324207362 I add some comment 2011/12/18 Danny Yoo : > > > On Saturday, December 17, 2011, Niitsuma Hirotaka > wrote: >> Is this valid behavior? >> > > The sub.scm file you posted looks malformed, so some copy-and-paste error > probably happ

Re: [racket] nested require modules and global variable

2011-12-17 Thread Danny Yoo
On Saturday, December 17, 2011, Niitsuma Hirotaka < hirotaka.niits...@gmail.com> wrote: > Is this valid behavior? > The sub.scm file you posted looks malformed, so some copy-and-paste error probably happened. Otherwise, can you also say what you expected to see? __

[racket] nested require modules and global variable

2011-12-17 Thread Niitsuma Hirotaka
Is this valid behavior? -sub-sub.scm-- #lang racket (provide my-global-var print-my-global-var set-my-global-var!) (define my-global-var "global in sub-sub") (define (print-my-global-var) (display my-global-var) (newline)) (define (set-my-global-var! v) (set! my-global-var v)) ---