ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: local properties
Date Wed, 20 Oct 2004 17:10:19 GMT
> From: Peter Reilly [mailto:peterreilly@apache.org] 
> 
> Jose Alberto Fernandez wrote:
> 
> >>From: Peter Reilly [mailto:peterreilly@apache.org]
> >>
> >> From the point of view of most languages, there is a flat
> >>namespace. For example in "C" one can do
> >>
> >>int a;
> >>
> >>void proc(void) {
> >>   int a;
> >>   a = 1;
> >>}
> >>
> >>Peter
> >>
> >>    
> >>
> >
> >Sorry, but you are mistaken here. The "a" being assigned is 
> different 
> >from the global one. So, it is not flat. Each identifier is actually 
> >represented by a location relative to a frame or environment.
> >  
> >
> The point I was trying to make was that the "C" use is the 
> same as the origianl <local> useage: <local name="a"/>  <sequential>
>    <local name="a" value="1"/>
> </sequential>
> 

Yes but in "C" not declaring something is a syntax error. In ANT
is a meaningful operation. So we need shadowing without definition.

> The namespace is flat, but the name can refer to different locations 
> depending
> on scope.
> 
> >That is not the case in ANT. Or more clearly everything inside a 
> >project is on the same frame/environment.
> >  
> >
> In the local patch, a new frame is made for each container.
> 

Do we copy, not copy, almost copy? What happens if I declare
a parallel with a <daemon/> ? inside a macrodef.

Jose Alberto

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


Mime
View raw message