generics

You are currently browsing articles tagged generics.

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.

Read the rest of this entry »

In the new Delphi forums recently, Barry Kelly responded to a question about lambda expression syntax in Tiburón with this observation:

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.

Read the rest of this entry »

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.

Read the rest of this entry »

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…

Read the rest of this entry »