Git Product home page Git Product logo

Comments (3)

Poobslag avatar Poobslag commented on June 12, 2024

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.

Poobslag avatar Poobslag commented on June 12, 2024

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.

Poobslag avatar Poobslag commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.