Re:A C Heisenbug in the wild
by barrkel on Sunday June 12, 2011 @01:01PM
(#2646822)
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.
[ Parent
| on HN ]
I was under the impression that Delphi was written in Delphi.
The Delphi IDE is written in Delphi, but the Delphi compiler is written in C.
Ah, interesting. I'll have to tell that to my dad, who always told me that Delphi was one of the earliest self hosting languages.
Re:A C Heisenbug in the wild
by ryanpetrich on Sunday June 12, 2011 @11:30PM
(#2648015)
Delphi is an object-oriented variant of Pascal. Pascal has been self-hosted since the late seventies.