HaxeFoundation / HaxeFoundation/haxe

[cpp] weird code generated for int iterator

Open
#5,750 4 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
feature-iterator platform-cpp
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

``` haxe
class Main {
static function main() {
for (i in 0...10) {
Sys.println(i);
}
}
}
```

``` cpp
HXLINE( 3) HX_VARI( Int,_g) = (int)0;
HXDLIN( 3) while((_g < (int)10)){
HXLINE( 3) _g = (_g + (int)1);
HXLINE( 4) ::Sys_obj::println((_g - (int)1));
}
```

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.