felix icon indicating copy to clipboard operation
felix copied to clipboard

open directive fails in function scope

Open skaller opened this issue 4 years ago • 1 comments

if this works:

open X;
proc Y { ... }

then this should work too:

proc Y { 
  open X;
... 
}

but this is not so. The issues with nested opens have occurred before the cases found then fixed but there are still some compnents that are not found. Specifically for FlxGui I get this:

SIMPLE NAME window_controller_interface NOT FOUND ERROR
In /Users/skaller/felix/src/packages/gui.fdoc: line 862, cols 24 to 51
861: {
862:   var windows = darray[window_controller_interface]();
                            ****************************
863:
Routine: inner_lookup_name_in_env

whereas if the open is outside the proc it works.

skaller avatar Nov 10 '20 08:11 skaller

Note: I recall this had something to do with inherited symbols.

skaller avatar Nov 10 '20 08:11 skaller