ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Re: local properties
Date Wed, 20 Oct 2004 16:47:46 GMT
Jose Alberto Fernandez wrote:

>>From: Peter Reilly [] 
>> 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;
>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"/>
   <local name="a" value="1"/>

The namespace is flat, but the name can refer to different locations 
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
>will refer the the only one location for 'a' in the compilation module.
>THAT is how ANT works today. 
Is true.


>Jose Alberto
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message