Skip to content

Commit

Permalink
SE-0400: init accessors can be ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLatsis committed Apr 23, 2024
1 parent 96af45b commit e034929
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proposals/0400-init-accessors.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ declaration of a type.

## ABI compatibility

`init` accessors are only called from within a module, so they are not part of the module's ABI. In cases where a type's initializer is `@inlinable`, the body of an `init` accessor must also be inlinable.
`init` accessors can be ABI-public but are at most `internal`.
Calling an `init` accessor from an `inlinable` type initializer requires that
the `init` accessor is ABI-public.

## Implications on adoption

Expand Down

0 comments on commit e034929

Please sign in to comment.