Prompted by a conversation with some colleagues where-in we collectively speculated about the implementation details of a generic class and what impact – if any – this might have on performance vs a “traditional” polymorphic equivalent, I threw together a quick performance test case in my Smoketest framework, and as a result discovered a couple of significant changes in Delphi 2009 that created some unexpected problems.
You are currently browsing articles tagged generics.
This syntax needs type inference. Our compiler was not originally written to support type inference, but work to support type inference is orthogonal to supporting anonymous methods. … you’ll need to provide the full declaration type, for now.
In other words – as I understand it – Tiburón/Delphi 2009 will not (initially at least) support type inferencing. To my mind this dramatically reduces the attractiveness of Generic Methods.
I was a little disappointed that the preview webinar this morning was little more than a re-run of the same content from a little over a week ago, albeit with some downloadable PowerPoint slides this time.
It was at least an opportunity for some more Q&A and a couple of interesting Q’s got A’d.
Read the rest of this entry »
Having covered some of the basic use of multicast events, in this second post I shall start to build the implementation. In this first iteration we will provide the basics of a multicast event – managing and calling multiple handlers and the ability to enable and disable an event.
The test project used in the previous video demonstration may also now be downloaded for you to experiment with if you wish.
So I just caught the last half of the Tiburon Preview webinar. I missed the generics/anonymous methods material and only saw the VCL improvements and changes and the final Q&A.
So, what was there to see…