You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to overload operators, i.e.: add(), sub(), mul(), for user defined @WP.struct types.
This could be accomplished by having users define @wp.func overloads for add(), mul() that accept the user type.
Context
An example where this is useful would be e.g.: complex numbers or interval arithmetic which could be implemented completely within Python using this approach.
The text was updated successfully, but these errors were encountered:
Description
It would be useful to be able to overload operators, i.e.: add(), sub(), mul(), for user defined @WP.struct types.
This could be accomplished by having users define @wp.func overloads for add(), mul() that accept the user type.
Context
An example where this is useful would be e.g.: complex numbers or interval arithmetic which could be implemented completely within Python using this approach.
The text was updated successfully, but these errors were encountered: