Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.777 Beiträge
 
#1

Anonymous method do location capturing, so when you expect value capturing you get th

  Alt 14. Feb 2019, 17:10
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

Weiterlesen...
  Mit Zitat antworten Zitat