Skip to content

Comment on Anders Hejlsberg on Modern Compiler Construction (2016) [video]parent

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...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.