haxe Questions

12

Solved

I tried to run a project using custom build in FlashDevelop: $(CompilerPath)\haxe.exe $(ProjectDir)\compile-js.hxml , but I get this error: 'cp' is not recognized as an internal or external com...
Tweeny asked 10/2, 2013 at 11:18

3

Solved

Is there a way in Haxe to get the equivalent of Java's abstract methods and abstract classes? What I want is // An abstract class. (Written in a Java/Haxe hybrid.) abstract class Process<A>...
Anemia asked 21/5, 2015 at 14:53

3

Solved

Let's say I'd like to iterate through a generic iterator in reverse, without knowing about the internals of the iterator and essentially not cheating via untyped magic and assuming this could be an...
Frias asked 26/11, 2012 at 16:38

4

Solved

In ActionScript I can use ... in a function declaration so it accepts arbitrary arguments: function foo(... args):void { trace(args.length); } I can then call the function passing an array: foo...
Tarkany asked 7/2, 2015 at 19:50

3

Solved

I need a function that returns the local time in milliseconds on the CPP target. I tried Haxe's Date class, but Date.now() gives me the time in seconds.
Macrophage asked 25/1, 2016 at 20:32

1

Solved

I'm trying to setup an https server but I can't find any example on how to use Haxe sys.ssl.Socket and the documentation doesn't quite speak to me. So far I got the following code which throw an '...
Crystallography asked 2/6, 2019 at 20:19

2

Solved

I want to declare 2 routes. The first one, "/api" will provide some REST stuff, and the other one, "/static" should serve static content. I tried to start from the quick start samples, but I don't...
Contract asked 22/5, 2019 at 12:38

2

Solved

I am new to HaxeDevelop (but experienced with FlashDevelop) and it has essentially no useful documentation that I can find via a Google search. I am trying to get a simple app up and running with O...
Cormack asked 8/4, 2019 at 21:8

3

Solved

I am trying to deserialize a JSON string into a class instance in Haxe. class Action { public var id:Int; public var name:String; public function new(id:Int, name:String) { this.id = id; th...
Paradox asked 17/6, 2012 at 19:55

2

Solved

I have a server running under NekoVM which provide a RESTLike service. I am trying to send a PUT/DELETE request to this server using the following Haxe code : static public function main() { var ...
Kriskrischer asked 7/12, 2014 at 17:49

2

Solved

I need to find out why some module gets included into compilation. There is some class that should not be included and I think there are some unused imports or bad architecture that requires unnec...
Decumbent asked 9/11, 2018 at 11:34

1

Solved

I'm trying to wrap my head around abstract by implementing a Set data-type, like so: abstract Set<T>(Map<T, Bool>) { public inline function new() { this = new Map<T, Bool>(); ...
Mayfield asked 28/9, 2018 at 16:15

8

I had a fresh look at Haxe again recently and realized that I had overlooked some of its elegance before. But I guess it lacks some visibility among the developers still. So my question is, does a...
Ignacioignacius asked 26/11, 2008 at 15:57

3

Solved

Are there any reliable debuggers for Haxe out there, in an ActionScript 3 context, and do they support breakpoints, conditional breakpoints, watches, locals and stacks?
Rouen asked 16/9, 2009 at 14:56

1

Solved

I'm writing on Haxe and targeting Neko. Today I've encountered this problem: var a:Array<Array<Int>> = new Array<Array<Int>>(); a[1] = [1, 2, 3]; The second line throws "...
Dualistic asked 29/4, 2018 at 10:24

1

Solved

I know, I can do something like public static function getTarget():String { #if flash return "Flash"; #elseif java return "Java"; //... some more elseif clauses ... #end } in order to dete...
Inconceivable asked 11/3, 2018 at 13:53

2

Solved

I'm trying to make some dark magic with macros in Haxe, I have a class named Entity and I want to add a pool with the static and private modifiers: Pool.hx: package exp; class Pool<T> { pub...
Embody asked 27/1, 2018 at 12:4

1

Solved

I was wondering whether it is possible to access external information - like the current date during compilation. It would then be possible to do something like this: class MyInfo { private var ...
Echelon asked 26/11, 2017 at 9:4

2

Solved

I have a Dynamic object from Json and need to clone that in Haxe. Is there any easy way to clone object, please let me know. Or if it's impossible, I want at least iterate that Dynamic object such ...
Mandelbaum asked 21/11, 2017 at 3:47

1

Solved

I'm converting a JavaScript library to Haxe. It seems Haxe is very similar to JS, but in working I got a problem for function overwriting. For example, in the following function param can be an an...
Excommunication asked 17/11, 2017 at 8:55

1

Solved

Is it possible to get map length/size? For some reason, I need to know the size of the map for debugging purposes. I cant seem to do something like this: map = new Map<Int, MyObject>(); ma...
Mackenzie asked 18/10, 2017 at 14:30

2

Solved

Is there an implementation of setTimeout() and clearTimeout() in Haxe? It's of course possible to use the Timer class, but for a one-shot execution it's not the best way, I guess.
Dichogamy asked 29/9, 2011 at 6:43

1

Solved

What would be the most performant way to clear an array in Haxe? Currently I am just assigning an empty array to the variable. I found this on the Internet: public static function clear(arr:Array...
Wabble asked 26/7, 2017 at 10:21

2

Solved

How does Haxe compiled code compare in performance to its different targets? For example, is PHP coming from Haxe faster or slower than original PHP code? What about Javascript? Flash? C++? Etc. ...
Rodmann asked 14/8, 2013 at 0:55

2

Solved

Let's say that I've created a build macro that can be used like so @:build(macros.SampleMacro.build("arg")) class Main {} Is it possible to convert it into a custom, shorthand metadata? @:sampl...
Repudiation asked 9/5, 2017 at 14:43

© 2022 - 2024 — McMap. All rights reserved.