﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2111	array element as first argument to change	Lennart Ochel	somebody	"I have a model with the following block inside:

{{{
block anyChange ""Does any entry of a Boolean vector change its value?""
  input Boolean vec[:];
  output Boolean anychange;
algorithm
  anychange:=false;
  for i in 1:size(vec, 1) loop
    anychange:=anychange or change(vec[i]);
  end for;
end anyChange;
}}}

... wherefore I get the following error message from OpenModelica:

{{{
[/home/lochel/Documents/tests/testTotal_vs.mo:922:11-922:49:writable] Error: First argument to change in component P1.activeConOut must be a variable
}}}

[line 922 is ""anychange:=anychange or change(vec[i]);"" from the snippet above]"	defect	new	high	1.9.0	Frontend	trunk			Martin Sjölund Adrian Pop
