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

Account for sub-types in ComplexTypeTools.toComplex(). #11273

Merged
merged 1 commit into from Jul 7, 2023

Conversation

player-03
Copy link
Contributor

@player-03 player-03 commented Jul 6, 2023

Currently, if you pass "package.Module.SubType" you'll get TPath({ pack: ["package", "Module"], name: "SubType" }). After this change, you'll instead get TPath({ pack: ["package"], name: "Module", sub: "SubType" }).

Resolves #8342.

Apparently this was first brought up in 2014, but not resolved because the implementation was too complex (no pun intended). Hopefully this is better!

@player-03
Copy link
Contributor Author

Regarding the two failed checks, one seems to be a download issue, and I have no idea what the other means. But CI worked over on my repo (after one retry), so I assume it's transient.

@Simn
Copy link
Member

Simn commented Jul 7, 2023

Checking pack.length seems wrong here, what about the straightforward Module.SubType case?

@kLabz
Copy link
Contributor

kLabz commented Jul 7, 2023

Checking pack.length seems wrong here, what about the straightforward Module.SubType case?

pack is more like "parts" there, it contains the whole split path so it does sound ok to me (but I wouldn't trust myself yet today, need more coffee)

@Simn
Copy link
Member

Simn commented Jul 7, 2023

Ah you're right, in that case this seems fine.

@Simn Simn merged commit d1ef1a3 into HaxeFoundation:development Jul 7, 2023
50 checks passed
@player-03 player-03 deleted the toComplex-sub-types branch July 7, 2023 14:57
@skial skial mentioned this pull request Jul 12, 2023
1 task
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.

MacroStringTools.toComplex confuse
3 participants