HaxeFoundation / HaxeFoundation/haxe
Reflect.fields specification regarding class instances
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.