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

Caller tracking. #99

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Apprentice-Alchemist
Copy link

A replacement for that ?pos:haxe.PosInfos magic.

Rendered proposal

@skial skial mentioned this pull request Oct 5, 2022
1 task
@Simn
Copy link
Member

Simn commented Nov 18, 2022

You correctly point that that there's a problem with PosInfos handling vs. rest arguments, but then your design doesn't explain how to actually resolve that in the context of your proposal.

I don't hate the actual design, but I don't think this resolves the problem you want to resolve.

@Apprentice-Alchemist
Copy link
Author

You correctly point that that there's a problem with PosInfos handling vs. rest arguments, but then your design doesn't explain how to actually resolve that in the context of your proposal.

With this design the problem simply shouldn't occur anymore, right?
Let's say it's implemented by inserting the position information as an implicit first argument (this should work on every target, I think).
The implicit argument is not optional, and the compiler inserts the relevant infos on every call, so nothing can go wrong even when rest arguments are involved.

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

Successfully merging this pull request may close these issues.

2 participants