Lisp HUG Maillist Archive

First Multi-File/ Multi-Package ''application''

Hi,
  I'm using free version (personaledition) on Windows.

  I'm having trouble figuring out form documentation, how to
  setup a multi-package system.

  Say i make a 'hw.lisp' which defines a package 'hw'
  What setting in lispwork i need to to, so that a (use-package 'hw)
  can locate hw.lisp in my directory ?

TIA
-- 
!!\/\/                http://notnotVV.blogspot.com


Re: First Multi-File/ Multi-Package ''application''

On Thu, 26 Apr 2007 14:01:28 +0530, "V V" <notnotvv@gmail.com> wrote:

>   I'm using free version (personaledition) on Windows.
>
>   I'm having trouble figuring out form documentation, how to
>   setup a multi-package system.
>
>   Say i make a 'hw.lisp' which defines a package 'hw'
>   What setting in lispwork i need to to, so that a (use-package 'hw)
>   can locate hw.lisp in my directory ?

You asked the same question on comp.lang.lisp and it has already been
answered there.  Please note my posting (copied at the end of this
email) where I explained that you're confusing "packages" and
"systems".

Edi.




On 25 Apr 2007 19:05:24 -0700, !!VV <notnotVV@gmail.com> wrote:

> I'm looking for instant nirvana for this:
>  --> Make a package, having a func say hw ==> (print "hello world")
>  --> use this in another 'main' file.
>  --> lispworks steps ( adding package directory etc ) for this.

I said this many times before, but I think it's worth repeating: Most
newbies (including you, I'm sure) say "package" when they mean
something else.  We usually say "system" or something like that for a
set of files that belong together and comprise a program or library.
A "package" is a defined term for a first-class object in the
language:

  http://www.lispworks.com/documentation/HyperSpec/Body/11_.htm

Maybe you should read a good introductory book:

  http://www.gigamonkeys.com/book/

> I'm wading through documentation, however a kickstart will be
> appreciated (-:

Have you looked at this?

  http://weitz.de/starter-pack/
  http://weitz.de/starter-pack/#own

HTH,
Edi.


Re: First Multi-File/ Multi-Package ''application''

You cannot do that.  CL is more like C/C++ in this respect than Java  
or other systems.

The way to proceed is to set up a "system" specification in order to  
make sure that files are loaded and compiled in the proper order.

You can use LW native DEFSYSTEM, or the free MK:DEFSYSTEM or ASDF to  
this end.

Cheers

Marco




On Apr 26, 2007, at 10:31 AM, V V wrote:

>
> Hi,
>  I'm using free version (personaledition) on Windows.
>
>  I'm having trouble figuring out form documentation, how to
>  setup a multi-package system.
>
>  Say i make a 'hw.lisp' which defines a package 'hw'
>  What setting in lispwork i need to to, so that a (use-package 'hw)
>  can locate hw.lisp in my directory ?
>
> TIA
> -- 
> !!\/\/                http://notnotVV.blogspot.com
>

--
Marco Antoniotti, Associate Professor
DISCo, Università Milano Bicocca
Via Bicocca degli Arcimboldi 8, U7, 4 piano
I-20126 Milan (MI) ITALY






Re: First Multi-File/ Multi-Package ''application''

Unable to parse email body. Email id is 6620

Updated at: 2020-12-10 08:46 UTC