Re: Test152: Foreach with string literal as item?

Oh my .. sorry, the comment gives it away:

<!-- illegal item, legal array -->

Test was running automated and I am somewhat sensitive to the issue as we had some ambiguities with exactly this issue in Dirk's VoiceXML interpreter.
  Stefan

On Mar 29, 2013, at 7:31 PM, Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de>
 wrote:

> Hi there,
> 
> looking at test152, I find foreach used as:
> 
> <foreach item="'continue'" index="Var3" array="Var5">
>  <assign location="Var1" expr="Var1 + 1"/>
> </foreach>
> 
> My interpreter was stumbling upon 'continue' as it is a literal string and as such not a valid variable name. The draft says for item: "Any variable name that is valid in the specified data model.". Which 'continue' is not - am I to read that item ought to *evaluate* to a valid variable name or is this an error in the tests?
> 
> Regards
> Stefan

Received on Friday, 29 March 2013 18:35:47 UTC