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

Deeper Rust integration and object interoperability #1932

Closed
raviqqe opened this issue Dec 31, 2024 · 0 comments · Fixed by #2056
Closed

Deeper Rust integration and object interoperability #1932

raviqqe opened this issue Dec 31, 2024 · 0 comments · Fixed by #2056
Labels
enhancement New feature or request

Comments

@raviqqe
Copy link
Owner

raviqqe commented Dec 31, 2024

Examples

struct Foo {
    // ...
}

impl Foo {
    fn bar(&self) {
        // ...
    }
}

Engine::new(heap, &mut [Foo::bar.into_any_fn()]);

Then, in the Scheme side:

(import (scheme rust))

(foo-bar foo)

References

@raviqqe raviqqe added the enhancement New feature or request label Dec 31, 2024
This was referenced Jan 16, 2025
raviqqe added a commit that referenced this issue Jan 23, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Stak Scheme Jan 29, 2025
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
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant