Comments (3)
Here are the results of a haxelib list
, to clarify which versions are in use
actuate: 1.8.9 [1.9.0]
box2d: [1.2.3]
flixel-addons: 2.9.0 2.10.0 2.11.0 [3.1.1]
flixel-demos: 2.7.3 2.7.4 2.8.0 [2.9.0]
flixel-templates: 2.6.5 [2.6.6]
flixel-tools: 1.4.4 [1.5.1]
flixel-ui: 2.3.3 2.4.0 [2.5.0]
flixel: 4.8.1 4.9.0 4.10.0 [5.3.1]
format: [3.5.0]
hashlink: git [dev:C:\HaxeToolkit\haxe\lib\hashlink/git/other/haxelib/]
haxelib: [4.1.0]
hscript: 2.4.0 [2.5.0]
hxcpp-debug-server: 1.2.4 [dev:c:\Users\aaron\.vscode\extensions\vshaxe.hxcpp-debugger-1.2.4\hxcpp-debug-server]
hxcpp: 4.2.1 [4.3.2]
hxp: [1.2.2]
layout: [1.2.1]
lime-samples: [7.0.0]
lime: 7.8.0 7.9.0 [8.0.1] git
openfl-samples: [8.7.0]
openfl: 9.0.2 9.1.0 [9.2.1] git
systools: [1.1.0]
from hashlink.
Investigating further, the problem seems to only occur when the target method includes varargs, such as this method:
public function cameraRight(tweenDuration:Float = 0.3):Void
The problem can be worked around by adding an extra layer of reflection/indirection:
-var _cameraButton:FlxButton = newButton(button.image, button.x + _pokeWindow.x, button.y + _pokeWindow.y, 28, 28, button.callback);
+var _cameraButton:FlxButton = newButton(button.image, button.x + _pokeWindow.x, button.y + _pokeWindow.y, 28, 28, () -> button.callback(0.3));
from hashlink.
Closing the issue; this is an inconsistency from other non-hashlink platforms which have no problem passing varargs functions as void functions, but I don't think it's anything that needs to be fixed.
from hashlink.
Related Issues (20)
- Linking to libopenal.a causes duplicated symbol error
- Recent change breaks hashlink builds. HOT 3
- macOS libhl.dylib path causes crash HOT 1
- The Hashlink profiler causes an exception in Process.stdout.readLine
- The Hashlink GC can block the main thread if sys.thread.Thread is used HOT 1
- Get live objects from a specific type
- JIT ERROR 0 mixing hl.UI8 and Float HOT 2
- Explicit constant Float to Int type conversion HOT 1
- Game controller not recognized HOT 10
- --debug is faster to run than non debug. HOT 2
- HL thread hangs when using trace() and semaphores HOT 2
- Can't run any .hl file on Mac M1 - Segmentation Fault HOT 2
- Unexpected value conversion when using an abstract class with type param
- Any way to get hl.Bytes from an hl.NativeArray? HOT 1
- Single and hl.F32 function args for callMethod stack issue HOT 1
- With SDL backend on Windows, adding an element to a SpriteBatch can cause a large lag spike HOT 1
- src/module.c(567) : FATAL ERROR : Failed to load function sdl@gl_polygon_offset HOT 3
- Macbook M1 Support HOT 1
- JIT/VM calls incorrect method
- Unable to build C output on Windows gcc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashlink.