10
votes
Vote UpVote

What do you think of functions overloads?

DelphiTools – In Delphi, you can overload functions, but doing so requires using the overload directive explicitly, f.i. the following code declares two functions with the same name, one that will be invoked if you pass an integer, another that will be invoked you pass a string: function MyFunc(a : Integer) : String; overload; function MyFunc(s : String) : String; overload; In many other languages, the overload directive is implicit, you don’t have to type it and you can always overload. On the other hand, it means that as long as your parameters differ, you can end up overloading an existing function ...
Favorite? Off-Topic? Eric @ 2012-01-26 08:32

Statistics

Visits: 1008
Votes: 10
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
CodeMonkey
Ericc
François
Jan Derk
Linas
Ph. B.
Simon J Stuart
vcldeveloper
Zzzzz
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)