Skip to content

Commit 1dcb60e

Browse files
committed
Remove outdated docs about C types and generics
C types used to _not_ be compatible with generic type parameters, but this was resolved when adding support for inline types. Changelog: other
1 parent d0106ba commit 1dcb60e

File tree

1 file changed

+2
-3
lines changed
  • docs/source/getting-started

1 file changed

+2
-3
lines changed

docs/source/getting-started/ffi.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ Pointer-pointers don't have a dedicated type (i.e. there's no
9494
There's no equivalent of C's `size_t` type, as Inko only supports 64-bits
9595
platforms, and thus you can just use `UInt64` instead.
9696

97-
C types don't support methods and operators, and C structures aren't compatible
98-
with generic type parameters. This means you'll either need to cast the types
99-
(e.g. casting an `Int32` to `Int`), or wrap the data in a custom type.
97+
C types don't support methods and operators. This means you'll need to
98+
explicitly cast them to Inko types (e.g. `Int`) first.
10099

101100
C types are treated as value types and are allocated on the stack, including
102101
structs (which we'll discuss later).

0 commit comments

Comments
 (0)