From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-06-11 15:33:49
Vladimir Prus <ghost_at_[hidden]> writes:
> David Abrahams wrote:
>> > BTW, what's the motivation for
>> > import uitls/path ;
>> > style, as opposed to
>> > import path ;
>> > Better indication of what layer we're using?
>> The motivation is basically the same as for Python packages. Systems
>> grow. We're going to allow users to write modules with arbitrary
>> names, and eventually we'll almost certainly want to use the same
>> module name in two different layers.
> I see. OTOH, long module names are not required in Python. Usually, you write
> import popen ;
Very nice for libraries in the standard distro. Not so nice
> and only for special package something like
> import xml.dom ;
>> > I'm thinking that if string layering is to be enforced, we can allow
>> string layering?
> "strict layering" --- i.e. when modules from one layer can only import modules
> from the layer below.
I didn't plan to ever add that kind of enforcement, but it seems like
a reasonable thing to issue warnings about.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk