<div dir="ltr">And products presumably, because this also does not work:<div><br></div><div>Product {</div><div>   property string foo: "baz"</div><div>   Rule {</div><div>      prepare: {</div><div>          var a = product.foo;</div>

<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 May 2014 15:14, Christian Kandeler <span dir="ltr"><<a href="mailto:christian.kandeler@digia.com" target="_blank">christian.kandeler@digia.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 05/22/2014 04:00 PM, Tim Hutt wrote:<br>
> Relatedly, how can I access properties from a Rule's prepare script?<br>
> E.g. this does not work - it thinks foo is not defined.<br>
><br>
>               Rule  {<br>
><br>
><br>
>                       property  string  foo:  "baz"<br>
><br>
><br>
>                       prepare:  {<br>
><br>
</div>>                               var  /a = foo;/<br>
><br>
> /<br>
> /<br>
<br>
Yeah, Rules (much like Artifacts) are not first-class items in that they<br>
don't really support adding custom properties in a meaningful way (i.e.<br>
you can't access them later from prepare scripts). Maybe that is worth<br>
changing. Jörg, what's your opinion on this?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Christian<br>
_______________________________________________<br>
QBS mailing list<br>
<a href="mailto:QBS@qt-project.org">QBS@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/qbs" target="_blank">http://lists.qt-project.org/mailman/listinfo/qbs</a><br>
</div></div></blockquote></div><br></div>