Vote UpVote

How to Alias a Procedure

The PodCast at Delphi.org – I just answered a question about how to alias a procedure. I thought it was interesting enough to share here. It is easy enough to alias a type . . . type my_integer = integer; then we can just use my_interger in place of integer as a type. But what about a procedure (or function for that matter)? There are two different ways, depending on if the procedure is a member of a class. For straight up procedural procedures and functions it looks a little something like this: procedure HelloWorld; // declare our procedure begin ShowMessage('Hi'); end; var my_proc: Procedure; // declare our ...
Favorite? Off-Topic? Jim McKeeth @ 2015-11-06 19:33


Visits: 2182
Votes: 5
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Jørn E. Angeltveit
Primoz Gabrijelcic
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)