Hacker News new | ask | show | jobs
by russh 2929 days ago
I really, really want a Turbo Pascal 5.5 with objects for linux.
1 comments

FreePascal is about that.

TP 5.5 with objects was a really clunky object system though (designed by Apple, IIRC). Object slicing by default. Vtable pointer added on definition of first virtual method in object hierarchy, like C++. And to invoke a constructor on a new heap-allocated object, you had to pass it as an argument to New(), with this weird syntax - "New(myObjPtr, Init(...))". Delphi's object system was far superior.

See some examples: http://collaboration.cmc.ec.gc.ca/science/rpn/biblio/ddj/Web...