Re: [racket] Question about package, library and module

2010-12-17 Thread Manfred Lotz
On Fri, 17 Dec 2010 06:20:47 -0700 Matthew Flatt wrote: > "Library" and "module" are synonyms, more or less, because a library > is implemented by a module. > > A "collection" consists of a set of libraries and sub-collections that > are normally grouped together into a directory. That is, a col

Re: [racket] Question about package, library and module

2010-12-17 Thread prad
On Fri, 17 Dec 2010 06:20:47 -0700 Matthew Flatt wrote: > Putting "utils.rkt" in a "collects" directory like > "~/.racket/5.0.2/collects" doesn't work because a single file cannot > be a collection. Instead, create "utils/main.rkt". > thx for the great explanation, matt! it all worked perfectly a

Re: [racket] Question about package, library and module

2010-12-17 Thread Matthew Flatt
At Thu, 16 Dec 2010 19:55:40 +0100, Manfred Lotz wrote: > It is not quite clear to me how package, library and modules > relate together. At Thu, 16 Dec 2010 20:50:47 -0800, prad wrote: > On Thu, 16 Dec 2010 19:55:40 +0100 > Manfred Lotz wrote: > > > I further assume that, e.g. (require somethi

Re: [racket] Question about package, library and module

2010-12-16 Thread prad
On Thu, 16 Dec 2010 19:55:40 +0100 Manfred Lotz wrote: > I further assume that, e.g. (require something) imports a module > named something. The next question is where and how to set a module > path. > i like to know about this too. following the ideas in the modules section of the guide (http:

[racket] Question about package, library and module

2010-12-16 Thread Manfred Lotz
Hi there, It is not quite clear to me how package, library and modules relate together. I suppose that a package as well as a library may contain 1 or more modules. It is not quite clear to me (if my first assumption is correct) they have to contain at least one module. I further assume that,