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

[REQUEST] Allow operator overloading of user defined wp.struct types #392

Closed
mmacklin opened this issue Dec 12, 2024 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@mmacklin
Copy link
Collaborator

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.

@mmacklin mmacklin added the enhancement New feature or request label Dec 12, 2024
@christophercrouzet christophercrouzet self-assigned this Dec 15, 2024
Ali-Razmjoo pushed a commit to fork-the-planet/warp that referenced this issue Jan 18, 2025
Ali-Razmjoo pushed a commit to fork-the-planet/warp that referenced this issue Jan 18, 2025
Add Operator Overloading for `wp.struct`

See merge request omniverse/warp!990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants