> It would be neat if the value of a dynamic property were 
> completely re-evaluated each time the property were 
> referenced because that would name a property reference into 
> a simple argument-less function call.  If that can be done, 
> you ought to brag about it in the documentation.

The value of a dynamic property is indeed re-evaluated each time the
property is referenced.  This behaviour is easily demonstrated with the
following build file:
<project name="dynamic" default="run">
    <target name="run">
        <property name="foo" value="Bah = [${bah}]" dynamic="true" />
<!--    This will fail: Property 'bah' has not been set.
        <echo message="${foo}" />
 -->
        <property name="bah" value="1" />
        <echo message="${foo}" />
        <property name="bah" value="Not 1 any more" />
        <echo message="${foo}" />
    </target>
</project>


You could then use a dynamic property as an alias for a particular
function call... I'd suggest this isn't a wise thing to do, for much the
same reason as use of #define to alias function calls is a discouraged
practice.


Regards,

-- Troy

Disclaimer Message:

This message contains confidential information and is intended only for the 
individual(s) named.  If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please immediately delete it and all copies of it from 
your system, destroy any hard copies of it, and notify the sender. E-mail transmission 
cannot be guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the 
maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept 
liability for any errors or omissions in the contents of this message which arise as a 
result of e-mail transmission.


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to