2013-11-10 18:12:43 +00:00
|
|
|
Variable x : Int
|
|
|
|
|
2013-11-13 00:05:46 +00:00
|
|
|
(**
|
2013-11-10 18:12:43 +00:00
|
|
|
local N = 100
|
|
|
|
-- Create N variables with the same type of x
|
|
|
|
typeofx = env():check_type(Const("x"))
|
|
|
|
for i = 1, N do
|
|
|
|
env():add_var("y_" .. i, typeofx)
|
|
|
|
end
|
2013-11-13 00:05:46 +00:00
|
|
|
**)
|
2013-11-10 18:12:43 +00:00
|
|
|
|
|
|
|
Show Environment 101
|
|
|
|
Check x + y_1 + y_2
|