Bar will err out, saying its value is not constant enough. This is because GDLisp compiles Foo to _Import_0.Foo, and then (very late in the process) it tries to validate that _Import_0.Foo is constant. This is too late, since we've already lost any static information about what _Import_0 is.
Bar
will err out, saying its value is not constant enough. This is because GDLisp compilesFoo
to_Import_0.Foo
, and then (very late in the process) it tries to validate that_Import_0.Foo
is constant. This is too late, since we've already lost any static information about what_Import_0
is.