Missing global variable declaration in mtlb_eval. 34/16334/4
Sylvain GENIN [Wed, 8 Apr 2015 08:31:58 +0000 (10:31 +0200)]
Worked in Scilab 5.X because of a scoping bug.

Test: test_run("compatibility_functions","bug_4603");

Change-Id: I51672596c6b4307e40c2cb49a087430e2ffa7562

scilab/modules/compatibility_functions/macros/mtlb_eval.sci

index 07e7d6f..00c3d87 100644 (file)
@@ -48,6 +48,7 @@ function r=mtlb_eval(%s1,%s2)
     margin="  "
     verbose_mode = 0;
     logfile=file("open",res_path+"m2sci_fun.log","unknown")
+    global("varslist")
     varslist=m2sci_init()
 
     // Define a function which contains expression/instruction to eval and convert it