ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: local properties
Date Tue, 26 Oct 2004 14:45:28 GMT
--- Jose Alberto Fernandez <jalberto@cellectivity.com>
wrote:
> I would like to hear comments about having an
> "antlib" scope. I.e., 
> global but visible only to tasks defined in the same
> antlib. This
> will give you a concept similar to "module
> variables" in many
> programming languages.

That is a difficult question to answer; I am not yet
sure whether explicitly named properties scopes are
necessary, but antlib scopes strike me as only one use
of scoped definitions; i.e. wrap any set of
<[[task|type]def|antlib|import]>s in a scope and...
what?  This smells like a can of worms I'm not sure we
want to open just yet... one can argue against the
need for antlib scope; if a property needs local scope
between two or more definitions in the same antlib,
then the proper approach should be the use of a
macrodef containing the propertyscope within its
<sequential> block.

> 
> Jose Alberto
> 
-Matt


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message