From 3c3f51d214d728f5d8fc2e5bdbb9f36b1b804627 Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Tue, 16 Jan 2024 14:26:57 -0500 Subject: [PATCH] Add callout for helping add "struct by value" to Pony (#528) --- docs/c-ffi/calling-c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/c-ffi/calling-c.md b/docs/c-ffi/calling-c.md index 83e45b25..a6667269 100644 --- a/docs/c-ffi/calling-c.md +++ b/docs/c-ffi/calling-c.md @@ -129,7 +129,7 @@ var iov = (data.cpointer(), data.size()) In the example above, the type `Pointer[(Pointer[U8] tag, USize)] tag` is equivalent to the `IOVec` struct type we defined earlier. That is, _a struct type is equivalent to a pointer to a tuple type with the fields of the struct as elements, in the same order as the original struct type defined them_. -**Can I pass struct types by value, instead of passing a pointer?** Not at the moment. This is a known limitation of the current FFI system, but it is something the Pony team is interested in fixing. +**Can I pass struct types by value, instead of passing a pointer?** Not at the moment. This is a known limitation of the current FFI system, but it is something the Pony team is interested in fixing. If you'd like to work on adding support for passing structs by value, contact us [on the Zulip](https://ponylang.zulipchat.com/#narrow/stream/192795-contribute-to-Pony). ### Working with Structs: from C to Pony