Std.isOfType Enum and Class
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start by compiling and running the provided Main/Example program on the C++ target, then inspect hxcpp's runtime implementation of Std.isOfType and compare the result with Eval, Neko, PHP, and JavaScript. Done means the C++ target no longer reports Example as both Class and Enum.
Written by the indexing model from the issue text.
Description
If you check whether a class or enum is a Class or Enum using Std.isOfType, both return true.
For example:
package;
class Main
{
static function main():Void
{
trace(Std.isOfType(Example, Class), Std.isOfType(Example, Enum));
}
}
class Example
{
public var message:String;
public function new(message:String) this.message = message;
public function toString() return this.message;
}
Example is clearly not an enum, yet the output is true,true.
This only happens on the C++ target. I tried Eval, Neko, PHP, and JavaScript, but this doesn't happen on any of those targets.
Is there a workaround I can use?
- Dominant language
- C++
- Stars
- 330
- Forks
- 237
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 20
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HaxeFoundation/hxcpp
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HaxeFoundation/hxcpp#1217 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
HaxeFoundation/hxcpp#1470 · 4 comments ·
Maintainers usually reply within 1 day
-
bug regression
Difficulty 3/5 1-2 days Newbie friendliness 40/100
HaxeFoundation/hxcpp#1464 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 1-2 days Newbie friendliness 18/100
HaxeFoundation/hxcpp#1454 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
HaxeFoundation/hxcpp#1452 ·
Maintainers usually reply within 1 day
All issues in HaxeFoundation/hxcpp
Similar issues
-
bug fixed form parser medium priority tokenizer
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
compatibility prio:normal
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NatronGitHub/openfx-misc#320 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
agent-ready area:analysis bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
pauljohanneskraft/Acai#609 ·
Maintainers usually reply within 10 days