Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 26916, Nullable Types with Generics from Delphi Live! 2009

by Jim McKeeth Email: Anonymous


Using generics to create nullable types with Delphi 2009 or better. Includes examples of casting to and from generic types, operator overloading, explicit and implicit type casting.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 12.0  to 12.0 273 downloads
Copyright: No significant restrictions


Size: 5,499 bytes
Updated on Mon, 25 May 2009 23:22:33 GMT
Originally uploaded on Mon, 25 May 2009 23:22:32 GMT
SHA1 Hash: E4FFF8E408BA53D0DFC0CFD89E626A764B1EC3C8
MD5 Hash: 64356DA3D7C6109C8E19F394F6D34A53

    Explore the files in this upload

Description
Nullable Types with Generics from Delphi Live! 2009
----------------------------------------------------

Example of nullable types using records, operator overloading and generics. Requires Delphi 2009 or better. Includes examples of casting to and from generic types, operator overloading, explicit and implicit type casting.

NullableInt32s.pas Nullable type for 32-bit Integers
NullableTypes.pas Generic nullable type example
TestNullableInt32s.pas Unit test for NullableInt32s.pas
TestNullableTypes.pas Unit test for TestNullableTypes.pas
Generics.Casts.pas Generic casting example by Andreas Hausladen

More information about a different implementation of generic nullable types:

http://blogs.embarcadero.com/abauer/2008/09/18/38869

Also check out Jeroen Pluimers' blog and CodeRage 3 Sessions on nullable types (without generics):

http://wiert.wordpress.com/ - blog
http://cc.embarcadero.com/Item/26326 – Code framework
http://cc.embarcadero.com/item/26416 – Video replay of session

For more information, see http://www.delphi.org/

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04