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

Allow special values to be added to the constant pool #2

Open
esainane opened this issue Jan 10, 2016 · 0 comments
Open

Allow special values to be added to the constant pool #2

esainane opened this issue Jan 10, 2016 · 0 comments
Labels

Comments

@esainane
Copy link
Owner

Informal basic examples:
&data would be the address of a constant pool entry holding the value of data
&this would be the address of a constant pool entry holding the value of this
&label would be the address of a constant pool entry holding the value of the address of :label.
&@1 would be the address of a constant pool entry holding the value of the address of this statement list's first stack cell.

Bonus:
Let &(3 + &@1) be the address of a constant pool entry holding the value of 3 more than the address of this statement list's first stack cell.

There are many interesting possibilities, and raise constant pool management from one of the simplest constructs up to the more complicated deferred pass.

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

1 participant