HaxeFoundation / HaxeFoundation/hxjava
Rest from Array doesn't work properly
- 主要言語
- Haxe
- スター
- 46
- フォーク
- 14
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When creating an Array and populating it with push(), the Rest from it doesn't work correct - it adds null value at the end. The bug in --java and --jvm:
```Haxe
import haxe.Rest;
class Main {
static public function main() {
var a:Array = new Array();
a.push(1);
a.push(2);
a.push(3);
trace(a, a.length); // [1,2,3], 3
var r = Rest.of(a);
trace(r, r.length); // [1,2,3,null], 4
}
}
```
```
-cp src
-main Main
--each
--java bin/java
--next
--jvm bin/jvm/main.jar
--next
--interp
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the haxe.Rest.of(a) path used by the --java and --jvm targets, reproducing the sample with the commands in the issue. Compare those results with --interp; done means Rest contains exactly the three pushed values and reports length 3 without the trailing null.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100