> You mention GC as if it was some kind of requirement for safe OOP
> languages. There's no such connection. It's only necessary for languages
> where objects are allocated dynamically and don't go out of scope by
> themselves. I'm not even sure *why* Java has such objects.
And I'm not sure how you would do a whole bunch of simple things
*without* such objects.
> It could
> perfectly work without them (just remove 'new' and use internally
> some kind of reference-counting copy-on-write system).
I have no idea why after all these years people still think reference
counting is a good idea. It's so trivial to find an example where it
utterly fails...
Post a reply to this message
|