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

Better discoverability of IL.Push/IL.Pop #3

Closed
Rohansi opened this issue Jul 22, 2018 · 2 comments
Closed

Better discoverability of IL.Push/IL.Pop #3

Rohansi opened this issue Jul 22, 2018 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Rohansi
Copy link

Rohansi commented Jul 22, 2018

DeclareLocals is really useful to have but it'd also be nice to reference normal C# locals too. I just noticed there's also Push and Pop so maybe the error could point to those, but maybe the names can be changed to Load and Store to match IL opcode names more?

@ltrzesniewski
Copy link
Owner

Yes, Push and Pop are there for this purpose. I guess they could have been named Load and Store but I'm reluctant to take a breaking change just for renaming them right now.

I see no other way to reference normal C# locals, because they can get optimized out in release builds, and there's no way to map C# local names to IL locals.

Can you tell me which error message you got, so I can improve it?

@ltrzesniewski ltrzesniewski added the enhancement New feature or request label Jul 22, 2018
@Rohansi
Copy link
Author

Rohansi commented Jul 22, 2018 via email

@ltrzesniewski ltrzesniewski changed the title Allow referencing locals without DeclareLocals Better discoverability of IL.Push/IL.Pop Jul 22, 2018
@ltrzesniewski ltrzesniewski added this to the v0.7.0 milestone Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants