Var

s := Default (string); Log ( 'Default String': + s);

GetTypeName (TypeInfo (string));

While the calls to Default are brand new in Delphi 2009 (although not terribly useful outside of generics), the call to TypeInfo74 at the end was already possible in past versions of Delphi. This is the trivial output:

Default Integer: 0 Default String: TypeInfo String: string

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment