Unknown
They say Generics and pointers don’t mix. type PMyThing<T> = ^TMyThing<T> // [DCC Error] E2508 type parameters not allowed on this type TMyThing<T> = record Thing: T; end;Ok, they don’t. But there is a loophole!type… … Read more
14 years ago in Delphi, generics, pointers0
Unknown
Curt Carpenter suggested a language addition for handing binary case logic.That gave me this idea. Chalk it up as another weird code snippet from yours truly.///<summary>> Convert array of booleans to a pseudobinary integer. ///Good… … Read more
14 years ago in binary, case, Delphi0
Yanniel
Last June 12th, 2011, I received an Embarcadero Community Newsletter pointing out that “certification exams are now available for Delphi developers. Embarcadero’s Delphi Certification Program offers two levels: Delphi Certified Developer and Delp… … Read more
14 years ago in Delphi, Delphi Programming, Object-Oriented Programming, pascal, programming0
Unknown
From the wishful thinking department, I would love to be able tovar Src: TSomeClass; MyObject : TBoundObject<Boolean>;begin MyObject.Bind(Src, CompilerMagic(TSomeClass.SomeBooleanProperty));end;instead ofvar Src: TSomeClass; MyObject : T… … Read more
14 years ago in bind, Delphi, generics, Wishlist0
Unknown
I wish this was a solution post, but it is a frustration post. I trying to figure out how I can use Ord() to convert an enumerated type to integer or cast an integer to… … Read more
14 years ago in Delphi, Enumerated types, generics0
Bob Swart
As I wrote in a previous blog post, my blog can now also be read on the iPhone, iPad and iPod Touch, using IntraWeb and the TMS iPhone controls for IntraWeb. … Read more
14 years ago in Delphi0
Francesca Gaillard
… or why simply replacing LockWindowUpdate by WM_SETREDRAW is not that straightforward. As you know, when you want to avoid flickering or multiple partial redraws of your Forms, during a flurry of updates for instance,… … Read more
14 years ago in Bug, Delphi, LockWindowUpdate, User Interface, windows0
Francesca Gaillard
… you may end up chasing memory leaks that don’t exist. I was at work investigating some bizarre behavior of our application when dealing with a big customer file and I had ReportMemoryLeaksOnShutdown turned on… … Read more
14 years ago in Bug, Debugger, Delphi, IDE, Memory Leaks, Quality0
Unknown
Yet Another Language Popularity Contest – Web site dataists had an article in december about the popularity of programming languages, using data from StackOverflow and GitHub to measure popularity. Delphi scored high on StackOverflow, but… … Read more
14 years ago in Delphi, popularity0