Re:Why Is Object-Oriented Programming Useful? With a Role-Pl...
by jameshart on Tuesday December 02, 2014 @06:00PM
(#8690661)
You're assuming that an object is always going to be modelled as a heap-allocated struct-like block of memory containing all of its state. There's no reason that has to be the case, though. You could create a system with an object-oriented programming model whose data storage was array-backed/table-oriented. You could probably even code something like that up in a fully GC'd OO language like C#. The way Java and C# manage string intern tables is an example of the kind of specialized data backing that's possible behind externally OO interfaces.
[ Parent
| on HN ]
There are no comments on this comment yet.