HaxeFoundation / HaxeFoundation/haxe

hl.Ref<> only works for local variables

Open
#9,803 3 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Calling the _inc function with a local var n:Int = 0 works but if n is not a local variable the result after the _inc call will be unchanged
`
private function _inc(value:hl.Ref):Void
{
value.set(value.get() + 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.