|
Boost-Build : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-27 11:56:49
----- Original Message -----
From: "Rene Rivera" <grafik666_at_[hidden]>
> I see some advantages to this approach:
>
> - It forces better interfaces on modules instead of
communication/setup with
> variables.
> - The semantics are close to class/object ones I'm familiar with :-)
Exactly.
> Question; What are the semantics of "import" in this case? I the
previous
> message you implied that variables get affected when importing but the
docs
> only talk about rules. From my current intuition of this, the
variables don't
> get affected, and the imported rules access their corresponding
modules
> variables.
Exactly. Unless, of course, you import with the optional final LOCALIZE
argument, in which case the rule acts like it was defined in the module
into which it's being imported.
-Dave
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