Vote UpVote

Backward Compatibility using Defalt Parameters

Let's Get Technical – When a function, procedure, or method requires at least one parameter, the final (right-most) parameters in the parameter list can be declared to have a default value. When the parameters declared to have a default value are omitted during the invocation of the subroutine, the default values are assigned to the corresponding formal parameters.While this feature is interesting by itself, there is another use for this feature that permits you to extend an existing method without breaking older versions.The best way to explain this trick is with an example. Imaging that you have a method you call ...
Favorite? Off-Topic? caryblog@jensendatasystems.com @ 2011-06-30 15:25


Visits: 761
Votes: 4
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
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)