﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3653	Evaluation of lists	Henning Kiel	Lennart Ochel	"I have the following simple code:
{{{
package Main
public function main
  input list<String> args;
  output list<String> out;
protected
  list<Real> r_arr;
  list<String> s_arr;
algorithm
    r_arr := list(stringReal(s) for s in args);
    s_arr := list(String(r) for r in {1,2,3,4,5});
    out := listAppend(args,s_arr);
end main;

end Main;
}}}

I run it with omc +g=MetaModelica and the following script:
{{{
loadFile(""Main.mo"");
getErrorString();
Main.main({""2"",""3"",""4"",""5"",""6"",""7"",""8""});
}}}
and get the following error (seems to try to open a file with the name of the first argument):
{{{
true
""""
File does not exist: 2
# Error encountered! Exiting...
# Please check the error message and the flags.

fail()
}}}



Another thing is that I cannot use list() in the script:
{{{
Main.main(list(""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8""));
}}}
leads to
{{{
""[Main.mos:3:1-3:49:writable] Error: Class list not found in scope <global scope> (looking for a function or record).
""
}}}
"	defect	new	normal	Future	Code Generation				
