On Sun, 21 Oct 2001 20:53, Jose Alberto Fernandez wrote:
> From: "Peter Donald" <[EMAIL PROTECTED]>
>
> > On Sat, 20 Oct 2001 19:36, Jose Alberto Fernandez wrote:
> > > 3) Invocation scope: what we have called user-properties in the past.
> > > Implemented by <param> on <ant*>. The value takes precedence from
> > > any definitions in the project being called (just like ANT1).
> > > Parameters in command line follow the same rules.
> >
> > I would call this Workspace scope.
>
> I really do not care about this names, but I have never heard the term
> Workspace used for a calling stack. Can you expand on your reasons?

A Workspace contains Projects. So if a property is shared between all these 
projects it is in the Workspace scope. However if you are trying to treat 
Targets as methods then it makes less sense - but that is not the type of 
interpretation we want to support anyways so no loss there.

> > > Finally, there is the issue of how to get values back from an
> > > invocation. How can that be worked out without violating either
> > > modularity or inmutability? I have been thinking on a form of
> > > return-values for <ant*> calls. The idea is something like:
> >
> > Treating <ant> as a function with return statements has been -1'ed so
> > many times I can't see this flying.
>
> Well, if you look at some ot the other proposals for scoping rules, you see
> two things floatings around: mutability and global properties. Both are
> there as a way for people to do something in an <ant> call and obtain
> results by global side effects. Now, if there is an actual need for being
> able to retrieve information from subordinate build processes <returns> is
> much more modular than global variables.

Again - treating targets as methods is not and nor will ever be - recomended 
or supported behaviour. 

-- 
Cheers,

Pete

"The perfect way is only difficult for those who pick and choose.  Do not
like, do not dislike; all will then be clear.  Make a hairbreadth
difference and heaven and earth are set apart; if you want the truth to
stand clear before you, never be for or against." - Bruce Lee

Reply via email to