HaxeFoundation / HaxeFoundation/haxe

Reflect.fields specification regarding class instances

Open
#11,871 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.