I have been using Delphi for nearly 10 years and today I discovered
something new, and very strange.
You can omit the parameters in the implementation of a method.
interface
type
TTest = class
public
procedure Test(AParameter: String);
end;
implementation
procedure TTest.Test;
begin
// This works, but it has the parameter "AParameter: Integer".
ShowMessage(AParameter);
end;
Any thoughts on why?
To me this could make the code difficult to understand.
I checked and it doesn't work if you include empty brackets like
"procedure TTest.Test();".
Stacey
Stacey Verner Ph: +64-9-4154790
Software Developer Fax: +64-9-4154791
DDI: +64-9-4154797
Email: [EMAIL PROTECTED]
<BLOCKED::mailto:[EMAIL PROTECTED]>
CJN Technologies Ltd.
PO Box 302-278, North Harbour, Auckland 0632, New Zealand
12 Piermark Drive, North Harbour, Auckland, New Zealand
Visit our website at http://www.cjntech.co.nz/
<BLOCKED::http://www.cjntech.co.nz/>
_______________________________________________
NZ Borland Developers Group Offtopic mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/offtopic
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe