0
votes
Vote UpVote

Anonymous method do location capturing, so when you expect value capturing you get the “Mysterious Case Of Wrong Value”

The Wiert Corner – Interesting read [WayBack] Mysterious Case Of Wrong Value. In order to capture by value (which in C++ you can specify), you need an intermediate function like Dalija describes: function CreateFunction(Value: Integer): TFunc<Integer>; begin Result := function: Integer begin Result := Value; end; end; Via: [WayBack] Dalija Prasnikar – Google+ –jeroen
Favorite? Off-Topic? jpluimers @ 2019-02-14 18:05

Statistics

Visits: 104
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

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)