Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open directive fails in function scope #159

Open
skaller opened this issue Nov 10, 2020 · 1 comment
Open

open directive fails in function scope #159

skaller opened this issue Nov 10, 2020 · 1 comment

Comments

@skaller
Copy link
Member

skaller commented Nov 10, 2020

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
Copy link
Member Author

skaller commented Nov 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant