LOOP macro. Is it bug or what? Follow
Hi,
I tried apply LOOP macro for the some statement, but in the generator output I see only one row. But if I wrap statement in the block statement or extract this statement in the field declaration of class it work's correctly. Why?
Code cut:
$LOOP$[SIB $[sibName] = new SIB(this, "$[sibName]")];
Result:
SIB sib3 = new SIB(this, "sib3");
Must be:
SIB sib1 = new SIB(this, "sib1");
SIB sib2 = new SIB(this, "sib2");
SIB sib3 = new SIB(this, "sib3");
TIA
Please sign in to leave a comment.
Hi,
probably the container is not StatementList (or whatever capable to hold list of statements).
It placed in the try section of TryCatchStatement.
All works perfectly. It's my mistake in truth. It happens because I didn't wrap the whole statement into the LOOP macros, I wraped up only content of the statement (right bracket of macro closes before ";" sing).