ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: local properties
Date Wed, 20 Oct 2004 16:47:46 GMT
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>

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.

>Now if this was Fortran-62, you do not declare 'a' so any usage or
>assignment
>will refer the the only one location for 'a' in the compilation module.
>THAT is how ANT works today. 
>  
>
Is true.

Peter

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


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


Mime
View raw message