guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Foreign objects multiple slots used vs just one


From: Javier Pollak
Subject: Foreign objects multiple slots used vs just one
Date: Sun, 11 Feb 2018 18:37:45 +0000

I'm working a porting the guile C library to Rust and I'm having some
trouble porting foreign objects in a type-safe at compile-time way.
Knowing all the slot types at compile-time is very tricky to accomplish in
this case and it would be a lot
easier to just have one slot filled in with a rust tuple to accomplish the
same behaviour as multiple slots.

Is there any advantage to/ difference with using multiple slots in foreign
objects?

the project is currently hosted on GH:
http://github.com/tim-editor/guile-rs/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]