|
|
|
|
|
by ragnese
2122 days ago
|
|
I'm not sure I follow. Both C++ and Rust allow us to put structs/classes on the stack or the heap. Rust has trait objects which use a vtables. Are Rust traits the same as "classes" then? When people say "OOP" or "class-oriented-programming" are you saying that they're referring to implementation details such as memory allocation? |
|