SpiffyEh
- 191
- 0
If you wanted to put ints, doubles, strings into your own container class how would you do it?
The discussion revolves around the implementation of a custom container class that can hold various data types such as integers, doubles, and strings. Participants explore different programming languages and approaches to achieve this, focusing on aspects like type safety and memory management.
Participants express differing views on the best approach to implement the container class, with some focusing on C/C++ specifics while others advocate for Java solutions. The discussion remains unresolved regarding the optimal method for handling various data types across different programming languages.
There are limitations regarding assumptions about platform dependencies for data types and the implications of memory allocation for strings, which are not fully explored in the discussion.
SpiffyEh said:If you wanted to put ints, doubles, strings into your own container class how would you do it?