Vote UpVote

Delphi: forward declaration of classes and interfaces, but no records.

The Wiert Corner – As Delphi allows to forward declare both classes and interfaces, people often wonder about records. The short answer: you can’t forward declare record types. The long answer: you can’t directly, but you can indirectly either reference based (through pointers or callbacks with const parameters) or operator based (through operator overloading). I think the reason forward declaration of classes and interfaces is possible because they both are reference types, so referring does not impose copying. –jeroen via: Object Interfaces (Delphi) – Forward Declarations. Classes and ...
Favorite? Off-Topic? jpluimers @ 2016-02-24 06:00


Visits: 1348
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)