Gary McCullough wrote:
> OK, here's my idea NAnt world:

My thoughts on these...

> Scopable properties
> Parameter variables

I'm all over the idea of parameters, it would render utility targets
that are currently property driven much safer, and largely
self-documenting as well - especially if done the xslt way, where a
target would define its parameters with default values.

How would you access these parameters, though?  Probably simplest is to
use the existing syntax of ${param.name}... the parameter value would
then take precedence over the property value.  That would provide a
reasonably clean and consistent access method, but there's still the
issue of a parameter obscuring an existing property - how do you get to
the value of the property instead of the parameter?  One way to solve
this is through functions, property::get-value vs parameter::get-value.

> Return values

IMHO, if a target or a task has a return value, then it should be a
function.

Alternatively, for those applications where functions just don't cut it
(multiple return values, in particular), then the parameter idea could
be extended to be write-back:

Call target 'foo' with a single input parameter, and two output
parameters:
<call target="foo">
  <with-param name="pram" value="bulator" />
  <with-param name="out1" property="foo.out1" />
  <with-param name="out2" property="foo.out2" />
</call>

After calling the target, the specified properties will be written back
with the final value of their corresponding parameter in the called
target.

> It seems to me all 3 extensions could be introduced without 
> introducing breaking changes. Except for implicitly scoping 
> property declarations.
> Might want to think carefully about that one.

My suggestion, ditch scoped properties and there are no breaking changes
:-)

Is there anything in particular that you can do with scoped properties
that you can't do with scoped parameters?

-T

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.


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to