1
vote
Vote UpVote

‘var’ vs ‘out’ as a function argument

The Programming Works – The Delphi Documentation is known to be a confusing and untrustful source of information. I am not quoting the current documentation content here and hope it will be fixed – right now it is a nonsense. You can replace ‘var’ by ‘out’ and get binary identical code if only POD types are used. Still the ‘out’ keyword is not an alias for ‘var’. The difference appears when lifetime managed types (strings, dynamic arrays, interfaces) are involved: program Test1; {$APPTYPE CONSOLE} uses SysUtils; type TIntArray = array of Integer; var ...
Favorite? Off-Topic? Serg @ 2012-08-22 12:39

Statistics

Visits: 1059
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

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