HaxeFoundation / HaxeFoundation/haxe

Cppia: Additional basic types initialize to null

Open
#7,280 1 comment 0 reactions 1 assignee Claimed by @hughsando View on GitHub
platform-cpp
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

The following program:
```class Main
{
public var f:cpp.Float32; // it can be other kinds of cpp.[U]Int* types
public function new()
{
trace(f);
}

public static function main()
{
new Main();
}
}
```

traces `null`, while `0` would be expected

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.