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

symbol rebinding #9

Open
MartinNowak opened this issue Feb 12, 2014 · 2 comments
Open

symbol rebinding #9

MartinNowak opened this issue Feb 12, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@MartinNowak
Copy link
Collaborator

It should be possible to rebind previous declared symbols to something else.

string foo = "bar";
int foo = 3;

This requires to keep track of declared symbols and excluding rebinded symbols from the imports.

module _mod1;

string foo = "bar";
module _mod2;
import _mod1 : foo;

int foo = 3;
module _mod3;
import _mod2 : foo; // doesn't import _mod1 : foo

//

Using selective imports allows to correctly implement function overload.
In that case both selective imports are present.

@MartinNowak MartinNowak modified the milestones: 0.1.1, 0.1.2 Feb 12, 2014
@MartinNowak MartinNowak self-assigned this Feb 12, 2014
@MartinNowak
Copy link
Collaborator Author

MartinNowak commented May 27, 2016

Keeping track of symbols would allow to reference count the shared libraries and free them if all symbols are reused.

@lindt
Copy link
Contributor

lindt commented May 11, 2019

this bug prevents drepl from being usefull in jupyterd.

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

No branches or pull requests

2 participants