Stream: t-lang/wg-unsafe-code-guidelines

Topic: layout vector


gnzlbg (Nov 20 2018 at 11:47, on Zulip):

@RalfJ i don't know what to do about the layout of unions, should I remove the unresolved question ?

RalfJ (Nov 20 2018 at 12:17, on Zulip):

I'd suggest say explicitly that this is about the ABI

RalfJ (Nov 20 2018 at 12:17, on Zulip):

but I think for now we dont want to make any guarantee for union ABI

RalfJ (Nov 20 2018 at 12:17, on Zulip):

maybe edit unions.md as well and add the question there?

RalfJ (Nov 20 2018 at 12:18, on Zulip):

seems like what we really want is repr(transparent) for unions, this has all the same concerns

RalfJ (Nov 20 2018 at 12:18, on Zulip):

but someone should write an RFC if they want that guarantee :D

gnzlbg (Nov 20 2018 at 21:15, on Zulip):

Yeah, I can move the question to the union's document, using vectors in ABI as an example. Something like repr(transparent) for unions sums this up nicely.

Last update: Nov 20 2019 at 11:30UTC