[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Re: giving smalltalk python import
From: |
MSA or SJF |
Subject: |
Re: [Help-smalltalk] Re: giving smalltalk python import |
Date: |
Wed, 8 Sep 2004 05:02:25 -0700 (PDT) |
--- Robert Collins <address@hidden> wrote:
> On Wed, 2004-09-08 at 12:10 +0200, Paolo Bonzini
> wrote:
> > > It could be. There are some tradeoffs: its
> easier (and ease is
> > > important) to just write a script, and be able
> to move it on disk to
> > > have everything associated move, rather than
> have to create a formal xml
> > > file.=20
> >
> > But a packages.xml file is actually quite simple
> and it can abstract away
> > the namespace and a few other boring details. I
> already did this yesterday
> > evening as well.
>
> Yes... but :}.
Rob, I have to say that I'm with Paolo on this one.
The packages.xml is not a 'formal xml' file, it's a
pretty informal one.
Paolo, that namespaces change is a real step forward.
I'd very much like to have some way to load packages
from a home directory, other than by putting an image
in that directory. Something like a SMALLTALK_PACKAGES
environment variable to be added to the search path
would do very nicely.
> > > Namespace currentSpace at: #defaultModule put:
> CVS.abstractFactory !
> >
> > Initialization like this is not very common in
> Smalltalk.
>
> Sure, was just demoing a point.
>
> > > which I think you'll agree is more work.
> >
> > Maybe, but I want to minimize the amount of work
> for a first version.
> > Souping it up can be done later.
>
> As long as we are willing to change..
>
> > > why not a . ? (I dont' have anything against
> '/', but . has some
> > > advantages:
> > >
> > > * its the syntax used in the language to
> traverse namespaces
> >
> > But here it's not namespaces, these are in
> packages.xml. I fear confusion,
> > and I don't want to impose a one-one relationship
> between namespaces and
> > directories.
>
> The power of the python model comes from the one-one
> relationship!
Between namespaces and directories? If that's what you
meant, what if I have two packages, both making
modifications to classes in the Smalltalk namespace?
Wouldn't I be forced to put the source into the same
directory?
[other stuff cut]
Mike
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
- Re: [Help-smalltalk] lessons from the python environment, (continued)
Re: [Help-smalltalk] lessons from the python environment, Paolo Bonzini, 2004/09/07
Re: [Help-smalltalk] giving smalltalk python import, Brian Brown, 2004/09/08
Re: [Help-smalltalk] giving smalltalk python import, Robert Collins, 2004/09/09
[Help-smalltalk] re: editors, Robert Collins, 2004/09/08
[Help-smalltalk] Re: /bin/sh execution of st scripts., Robert Collins, 2004/09/08