Re: Won't compile and no error messages returned
- Posted by cargoan Dec 15, 2014
- 1826 views
sorry, no understand the problem, i dont know english.
with sequence elements, compile Ok (????) translator bug?
-- file1.e public sequence s = {"func1", "func2"} public sequence s1 = s[1] public sequence s2 = s[2] -- file2.e public function func1() return {1,2,3} end function public function func2() return 25 end function -- file.ex include file1.e include file2.e --atom x = routine_id(s1) -- translator (segfault), eui Ok atom x = routine_id(s[1]) -- translate, compile and run Ok puts(1, s[1] & ", " & s[2] & 10) puts(1, s1 & 10) puts(1, s2 & 10) ? call_func(x, {}) x = routine_id(s[2]) ? call_func(x, {}) /* Output: func1, func2 func1 func2 {1,2,3} 25 */