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

Reflect.fields specification regarding class instances #11871

Open
Simn opened this issue Dec 11, 2024 · 0 comments
Open

Reflect.fields specification regarding class instances #11871

Simn opened this issue Dec 11, 2024 · 0 comments

Comments

@Simn
Copy link
Member

Simn commented Dec 11, 2024

The docs say

This method is only guaranteed to work on anonymous structures.
Refer to `Type.getInstanceFields` for a function supporting class instances.

However, haxe.Serializer has always used it on class instances in its serializeFields function, which makes me think that we can relax this constraint. The only target where it does something else is flash, and I'll be happy to document that accordingly.

This is relevant to #11863 as well.

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

No branches or pull requests

1 participant