Prev: IOLib Tutorial
Next: Suggession for your website
From: Evans Winner on 29 May 2010 05:02 (Thanks for the replies to the question I recently posted about floating point numbers; they were very helpful.) I hope this question isn't too half-baked. It's probably a problem with my understanding of packages. I have noticed that some systems (eg. ltk) don't just define a package for code, like "ltk", they also define a package, like "ltk-user" that is apparently the place that users are meant to, uh, use the system. What I seem to be too dense to understand is what exactly this buys the user. Ltk, for example, has a defpackage that uses :common-lisp. Then ltk-user, uses :common-lisp and :ltk. So what is the functional difference between a user being in ltk and being in ltk-user?
From: Rob Warnock on 29 May 2010 05:53 Evans Winner <thorne(a)unm.edu> wrote: +--------------- | Ltk, for example, has a defpackage that uses :common-lisp. | Then ltk-user, uses :common-lisp and :ltk. So what is the | functional difference between a user being in ltk and being | in ltk-user? +--------------- If you're in LTK-USER [or any other packages that only :USEs LTK], then code you write *won't* conflict with symbols internal to LTK, that is, that aren't exported from LTK. -Rob ----- Rob Warnock <rpw3(a)rpw3.org> 627 26th Avenue <URL:http://rpw3.org/> San Mateo, CA 94403 (650)572-2607
From: Tim Bradshaw on 29 May 2010 17:28 On 2010-05-29 10:53:31 +0100, Rob Warnock said: > If you're in LTK-USER [or any other packages that only :USEs LTK], > then code you write *won't* conflict with symbols internal to LTK, > that is, that aren't exported from LTK. I think another way of putting it is to say that you should regard the package(s) in which the implementation of something lives as sacred to it: interning things there is modifying the implementation.
From: Evans Winner on 29 May 2010 18:58 Tim Bradshaw <tfb(a)tfeb.org> writes: I think another way of putting it is to say that you should regard the package(s) in which the implementation of something lives as sacred to it: interning things there is modifying the implementation. Ah, I see. Funny, that does sound so sensible now. Don't know why it wasn't obvious to me. Thank you both.
|
Pages: 1 Prev: IOLib Tutorial Next: Suggession for your website |