HaxeFoundation / HaxeFoundation/haxe
hl.Ref<> only works for local variables
Open
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
Assessment
This issue has not been assessed yet.