News for hackers. Stuff that matters.
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.
Re:A C Heisenbug in the wild by xxpor on Sunday June 12, 2011 @01:42PM (#2646923)
I was under the impression that Delphi was written in Delphi.
Re:A C Heisenbug in the wild by barrkel on Sunday June 12, 2011 @02:23PM (#2647043)
The Delphi IDE is written in Delphi, but the Delphi compiler is written in C.
Re:A C Heisenbug in the wild by xxpor on Sunday June 12, 2011 @05:32PM (#2647454)
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.