HaxeFoundation / HaxeFoundation/haxe

cpp redundant function call after constant expression being optimized

Open
#7,019 8 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
feature-analyzer
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
var w = 5;
var x = Std.int(0.9 * w);
trace(x);
```
becomes
```cpp
HXLINE( 21) ::Std_obj::_hx_int(((Float)4.5));
HXLINE( 22) ::haxe::Log_obj::trace(4,hx::SourceInfo(HX_("Hello.hx",0c,83,7b,25),22,HX_("Hello",f2,a2,ee,b7),HX_("main",39,38,56,48)));
```
may be concerns about side-effect?

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.