Stream: t-compiler

Topic: casting trait object pointers to concrete pointers


Jake Goulding (Apr 21 2019 at 22:38, on Zulip):

Is it documented somewhere "official" that *const Trait as *const Concrete will only grab the data pointer and not the vtable?

nikomatsakis (Apr 24 2019 at 19:39, on Zulip):

I believe that was decided in an RFC

nikomatsakis (Apr 24 2019 at 19:39, on Zulip):

One written by nrc, if memory serves

nikomatsakis (Apr 24 2019 at 19:41, on Zulip):

maybe RFC 401?

nikomatsakis (Apr 24 2019 at 19:41, on Zulip):

I think it was a mistake but never mind

nikomatsakis (Apr 24 2019 at 19:41, on Zulip):

(well, at least, i've had subtle bugs as a result)

Last update: Nov 16 2019 at 01:40UTC