Skip to content

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