Stream: general

Topic: Stackoverflow: NonNull


RalfJ (Dec 12 2018 at 09:11, on Zulip):

@Jake Goulding could you update https://stackoverflow.com/questions/49392712/is-it-valid-to-use-ptrnonnull-in-ffi ? NonNull is repr(transparent) nowadays

Jake Goulding (Dec 12 2018 at 15:10, on Zulip):

@RalfJ look good now?

RalfJ (Dec 12 2018 at 15:22, on Zulip):

@Jake Goulding why the caution? "should be safe". it's as safe as it'll get, we cannot do more than provide the guarantee and implement it correctly.

Jake Goulding (Dec 12 2018 at 15:24, on Zulip):

fair enough. I didn't intend for the caution, but do you think it's better to say "so long as the wrapped type is"

RalfJ (Dec 12 2018 at 15:40, on Zulip):

is what?

Jake Goulding (Dec 12 2018 at 15:41, on Zulip):

... FFI safe

RalfJ (Dec 12 2018 at 15:44, on Zulip):

ah sure. yes the requirement is of course always recursive, never hurts to point that out :)

Last update: Nov 20 2019 at 12:55UTC