Zig NEWS

Discussion on: Faster Interface Style

Collapse
 
kristoff profile image
Loris Cro

Reading some examples in the standard library it seems that the myPick function can also accept a correctly typed pointer and that c_void will be compatible even without cast.

Example:
github.com/ziglang/zig/blob/master...

Collapse
 
david_vanderson profile image
David Vanderson

Good point. It looks like you can do the pointer cast in the interface:
github.com/ziglang/zig/blob/master...

I'll have to look at that and maybe write a followup about it. Thanks!