|
|
|
|
|
by de_watcher
2924 days ago
|
|
> this C/C++ carry-over inconsistency of manually-boxed types and non-Objects primitive types separated from Objects C++ allows user-defined value types that will behave like fundamental types. And it has raw pointers/references to them. Among all, there was a user-defined value type invented: the shared pointer (which works kinda like a GC, or exactly like a GC if you implement it and throw RAII out of the window). Java took only the fundamental types and a shared pointer. No wonder that there are some parts missing. |
|