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

Question: Are static methods and namespaces supported? #18

Open
andreasdr opened this issue Aug 17, 2019 · 2 comments
Open

Question: Are static methods and namespaces supported? #18

andreasdr opened this issue Aug 17, 2019 · 2 comments

Comments

@andreasdr
Copy link

andreasdr commented Aug 17, 2019

Hi,

Are static methods and namespaces supported?

My example would look like: tdme.utils.Console.idl:

namespace tdme {
  namespace utils {
    interface Console {
      static void println();
    }
  }
}

Also is there support for some std containers and std::string?

Many thanx and

Best regards
Andreas

@zicklag
Copy link
Collaborator

zicklag commented Aug 26, 2019

I don't know for sure, but the largest library I know that somebody has created bindings for with this is Bullet. You could look at the bullet WebIDL file to see what it has in it.

@andreasdr
Copy link
Author

Hmm. I see no static functions there. I decided to not to use namespaces in HL/TDME2, so this is not a problem.

Maybe I will write my own generator with transferring std containers to Haxe ones and the other way.

I would at least need an example how to do static methods. Guess I find it in HL/lib code.

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