Re: [racket-dev] Is this legal submodule code?
On Thu, Apr 19, 2012 at 2:45 PM, Matthew Flatt wrote: > I've pushed a repair for this bug. Ah, thank you! I will try it out as soon as it hits the 5.3 release branch. _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Is this legal submodule code?
I've pushed a repair for this bug. At Wed, 18 Apr 2012 13:02:05 -0400, Danny Yoo wrote: > I'm trying to wrap my head around submodules so I can get it working > with Whalesong, but I'm running into an issue: > > #lang racket > > (define (print-cake n) > #;(show " ~a " n #\.) > #;(show " .-~a-. " n #\|) > #;(show " | ~a | " n #\space) > (show "---~a---" n #\-)) > > (define (show fmt n ch) > (printf fmt (make-string n ch)) > (newline)) > > (module* main2 #f > (print-cake 20) > > (module* inner-main #f > (print-cake 20))) > > > > I'm trying to understand what it means for the "name" of a module to > be a list, and I expect the name of the inner-main module to be (cake > main2 inner-main). Is that right? > > > But I see the following error message when trying to run this under DrRacket: > > > ## > Welcome to DrRacket, version 5.2.901.1--2012-04-18(7279b02/g) [3m]. > Language: racket. > . . local/racket/collects/errortrace/errortrace-lib.rkt:434:2: > standard-module-name-resolver: too many ".."s in submodule path: > (submod (quote cake) "..") > ## > > > > I don't know enough about submodules yet to know if this is a bug or > I'm just doing something wrong. > _ > Racket Developers list: > http://lists.racket-lang.org/dev _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Is this legal submodule code?
That's a bug. I hope to look into it this afternoon. At Wed, 18 Apr 2012 13:02:05 -0400, Danny Yoo wrote: > I'm trying to wrap my head around submodules so I can get it working > with Whalesong, but I'm running into an issue: > > #lang racket > > (define (print-cake n) > #;(show " ~a " n #\.) > #;(show " .-~a-. " n #\|) > #;(show " | ~a | " n #\space) > (show "---~a---" n #\-)) > > (define (show fmt n ch) > (printf fmt (make-string n ch)) > (newline)) > > (module* main2 #f > (print-cake 20) > > (module* inner-main #f > (print-cake 20))) > > > > I'm trying to understand what it means for the "name" of a module to > be a list, and I expect the name of the inner-main module to be (cake > main2 inner-main). Is that right? > > > But I see the following error message when trying to run this under DrRacket: > > > ## > Welcome to DrRacket, version 5.2.901.1--2012-04-18(7279b02/g) [3m]. > Language: racket. > . . local/racket/collects/errortrace/errortrace-lib.rkt:434:2: > standard-module-name-resolver: too many ".."s in submodule path: > (submod (quote cake) "..") > ## > > > > I don't know enough about submodules yet to know if this is a bug or > I'm just doing something wrong. > _ > Racket Developers list: > http://lists.racket-lang.org/dev _ Racket Developers list: http://lists.racket-lang.org/dev
[racket-dev] Is this legal submodule code?
I'm trying to wrap my head around submodules so I can get it working with Whalesong, but I'm running into an issue: #lang racket (define (print-cake n) #;(show " ~a " n #\.) #;(show " .-~a-. " n #\|) #;(show " | ~a | " n #\space) (show "---~a---" n #\-)) (define (show fmt n ch) (printf fmt (make-string n ch)) (newline)) (module* main2 #f (print-cake 20) (module* inner-main #f (print-cake 20))) I'm trying to understand what it means for the "name" of a module to be a list, and I expect the name of the inner-main module to be (cake main2 inner-main). Is that right? But I see the following error message when trying to run this under DrRacket: ## Welcome to DrRacket, version 5.2.901.1--2012-04-18(7279b02/g) [3m]. Language: racket. . . local/racket/collects/errortrace/errortrace-lib.rkt:434:2: standard-module-name-resolver: too many ".."s in submodule path: (submod (quote cake) "..") ## I don't know enough about submodules yet to know if this is a bug or I'm just doing something wrong. _ Racket Developers list: http://lists.racket-lang.org/dev