0
votes
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

Statistics

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

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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