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

Add support for constructing @nativedefine struct/classes using Curly call #89

Open
JaDogg opened this issue May 19, 2024 · 0 comments
Open
Assignees
Labels
compiler enhancement New feature or request

Comments

@JaDogg
Copy link
Collaborator

JaDogg commented May 19, 2024

Description

  • I would like to be able to construct 3rd party library code directly in Yaksha.
directive allow_native_construct

@nativedefine
class Point:
    x: int
    y: int

def main() -> int:
    a = Point{x: 1, y: 2}
    return a.x + a.y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant