Skip to content

v0.6.0

Compare
Choose a tag to compare
@srydell srydell released this 29 Mar 18:07
· 10 commits to main since this release
9b6f975

News

Bindings

Python

  • Add support for transferring documentation from C++ namespaces to pybind11 modules

  • Add support for the following operators:

C++ operator Python operator
operator+ __add__
operator- __sub__
operator* __mul__
operator/ __truediv__
operator% __mod__
operator+= __iadd__
operator-= __isub__
operator*= __imul__
operator/= __itruediv__
operator%= __imod__
operator== __eq__
operator!= __ne__
operator> __gt__
operator>= __ge__
operator< __lt__
operator<= __ge__
operator[] __getitem__
operator() __call__

Overloading is also supported. There are more extensive documentation in the examples section.

  • Added support for polymorphic classes

    • Inherit from virtual C++ classes in python
    • Override virtual C++ member functions in python
    • Call functions via C++ base class on derived class from python
  • Improve readability of generated output

WebAssembly

  • Added support for inheriting from C++ classes from javascript
  • Automatic downcasting
  • Improved documentation
  • Improved readability of output somewhat
  • Supports raw pointers when necessary
    • Trusts the C++ side to know when to deallocate

Minor

  • Improve accessibility of documentation site on mobile