4 ms·
This is why the Delphi compiler codebase (written in C) uses two functions, "invariant()" and "invariant_if_debug()", instead of library-supplied asserts. The s
by barrkel 15y ago
This is why the Delphi compiler codebase (written in C) uses two functions, "invariant()" and "invariant_if_debug()", instead of library-supplied asserts. The second gets compiled out in release; the first triggers internal compiler error diagnostic even in production.
- xxpor 15y agoI was under the impression that Delphi was written in Delphi.
- barrkel 15y agoThe Delphi IDE is written in Delphi, but the Delphi compiler is written in C.
- xxpor 15y agoAh, interesting. I'll have to tell that to my dad, who always told me that Delphi was one of the earliest self hosting languages.
- ryanpetrich 15y agoDelphi is an object-oriented variant of Pascal. Pascal has been self-hosted since the late seventies.