ncannasse / webidl

Haxe support for WebIDL
MIT License
90 stars 16 forks source link

Question: Are static methods and namespaces supported? #18

Open andreasdr opened 5 years ago

andreasdr commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.