W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2001

Evaluation of expr in <param ...>?

From: Markku Savela <msa@msa.tte.vtt.fi>
Date: Thu, 25 Oct 2001 15:37:14 +0300
Message-Id: <200110251237.PAA29209@msa.tte.vtt.fi>
To: www-voice@w3.org

a) When processing the <param>'s of <subdialog> element, I assume the
expr's are evaluated on spot, before passing the "control" to the
actual subdialog?

b) Another possibility is that the param expr is delayed until the
actual <var> element in the subdialog is being executed (evaluation
would of course mean fairly complex "thunk" call, which would evaluate
the value at that point within the caller context).

The result might be different in (a) and (b), if the expr references
some variables of global scope (session or some system state), which
may have changed in between (possibly by the subdialog itself, before
getting to the var element).

I suppose this is rather theoretical question, and I guess (a) is the
answer. But, I'm just verifying, because I could not see this clearly
stated in VoiceXML 2.0 doc (maybe I missed it?).
Received on Thursday, 25 October 2001 08:35:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:35 UTC