webidl icon indicating copy to clipboard operation
webidl copied to clipboard

Question: Are static methods and namespaces supported?

Open andreasdr opened this issue 6 years ago • 2 comments

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

andreasdr avatar Aug 17 '19 18:08 andreasdr

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.

zicklag avatar Aug 26 '19 17:08 zicklag

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.

andreasdr avatar Aug 28 '19 21:08 andreasdr