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 ...
Visits by Source
Users who voted for this posting
Jørn E. Angeltveit