Source: Visual Studio Code January 2019
Parnassus Bookmarks and Navigator, well-known productivity plugins for the RAD Studio IDE, have been acquired by Embarcadero and is included in Rio 10.3 Update 1.
Not all for loops are created equal.
for x in [value1, value2, value3]
You would expect to see x vary in the order of the values in the list.
However – if x and the values are of an enumerated type, looping the “list”
does NOT loop in the apparent order of the constant, but in the order of the enumerated type declaration, such as it would for any set.
Article on getting started with GitHub which introduces the reader to the basic git workflow.
“Deadlocks are the result of application code combined with a database schema that results in an access pattern that leads to a cyclical dependency.”
I was writing a web request handler when I ran into a problem. I was plugging in multiple handlers, but only one of them actually worked.
To get to the essence of it, this doesn’t work
procedure TMyClass.Setup; var Handler: THandlerClass; hType: THandlers; begin Broker.Clear; for hType in [foo, bar] do begin case hType of foo: Handler := TFoo.Create; bar: Handler := TBar.Create; end; Broker.AddHandler(Handler.OnHandle); end; end;
Zipped example source code: https://drive.google.com/open?id=1RxOxOlYOrjqPryW7vGNw40VTLav6IN_MContinue reading “Delphi: Pitfalls of Anonymous methods and Capture”