<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 26, 2013 at 12:31 AM, Lars Eighner <span dir="ltr"><<a href="mailto:surname@larseighner.com" target="_blank">surname@larseighner.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3re" style="overflow:hidden">I want to set a PTV to the value of an expression which is evaluated once<br>
when the PTV is set and is never evaluated again so that the PTV has the<br>
value of the result string, not the expression string.</div></blockquote></div><br><br></div><div class="gmail_extra">Unfortunately this is not possible with the current implementation of PTVs.[1]<br><br></div><div class="gmail_extra">

You are exactly correct that the PTV becomes the *expression* rather than the *value* of the expression.<br><br></div><div class="gmail_extra">PTV assignment is simple text parsing, assigning the straightforward text (which in this case is the expression).  All pmwiki "evaluation" of expressions is done by means of rules, but the rules run on the text of the current page, not on the value held in the PTV unless the value of the PTV becomes part of the text of the current page (if that makes sense).<br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Peter<br><br></div><div class="gmail_extra">[1] Perhaps a certain subset of rules could be identified and then variables could have their text run through those rules at the moment of reading them.  But it'd be pretty inefficient, I'm afraid...<br>

</div></div>