Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling in C++, Conversion from promhx Promise to Dynamic Array #40

Open
collin1021 opened this issue Jul 27, 2017 · 0 comments
Open
Assignees

Comments

@collin1021
Copy link

I am having an issue compiling in C++ using Haxe and Promhx. I am not very familiar with Haxe but the issue seems to be with functions having "double returns". The returns look something like this:
return Dispatcher.dispatchMethod(Divide, 'surfaceSplit', [_data, u, useV]) .then(function(s){ return s.map(function(x){ return new NurbsSurface(x); }); });
The error is
cannot convert from 'hx::ObjectPtr<promhx::Promise_obj.' to 'Array<Dynamic>'

This happens when trying to call buildcpp.hxml with Haxe.

From what I can understand the resulting C++ is not returning the correct type for the defined function. I so far have two instances: The resulting Intersect.cpp and NurbsSurface.cpp.

I have all the current dependencies installed. I'd appreciate any help.

@pboyer pboyer self-assigned this Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants