![]() |
Anonymous method do location capturing, so when you expect value capturing you get th
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
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:26 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz