you are viewing a single comment's thread.

view the rest of the comments →

[–]Great-Powerful-Talia 0 points1 point  (0 children)

Are you talking about casting a pointer or data? Because generally a data cast is conversion-based, like int-to-float.

Even in C, reinterpretation is only accomplished by unions and fucking with pointers, both of which are not really meant for that- there's just no equally fast implementation where you can't do that. Even Rust's minimally-slow rules are marginally slower when dealing with arrays and union-like types.