This code in a GUI application compiles and runs (tested with Delphi 6 and 2009): procedure TForm1.Button1Click(Sender: TObject); begin Self := TForm1.Create(Owner); end; Questions that come to mind: why is Self writeable and not read-only? in which situations could this be useful? If you know the answer, I would be happy if you post it … Continue reading Why is “Self” assignable in Delphi?
stackoverflow.com
Stack Overflow is a collaboratively edited question and answer site for programmers — regardless of platform or language. You can answer and ask questions to your heart's content as an anonymous user, much like Wikipedia. URL: http://stackoverflow.com/ It is still a public beta, but looks very interesting.
Delphi 2009 (Tiburón) Sneak Peek Videos
Some Delphi 2009 (Tiburón) sneak peek videos have been posted on the CodeGear™ Developer Network web site http://dn.codegear.com Sneak Peek Video - What's new in the Delphi 2009 IDE Sneak Peek Video - What's new in the C++Builder 2009 IDE Sneak Peek Video - What's New in the VCL in Delphi and C++Builder 2009 Sneak … Continue reading Delphi 2009 (Tiburón) Sneak Peek Videos
Delphi tool box: a starter kit
Tests First things first: unit tests. Before you start to write a program, think about testing. Download DUnit if it is not already included in your version of Delphi. DUnit is Open Source. New versions of DUnit include automatic memory leak detection for all test cases, using FastMM4. DUnit GUI test runner There are also … Continue reading Delphi tool box: a starter kit
Fun with Infinite Loops in Delphi and Java
Look at the Java and Delphi source codes below. Which one will compile, and which one will run in an infinite loop? (click on 'more...' to see the answer) Java: void loop() { while (true) { try { return; } finally { continue; } } } Delphi: procedure Loop; begin while True do try Exit; … Continue reading Fun with Infinite Loops in Delphi and Java