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
for hType in [foo, bar]
case hType of
foo: Handler := TFoo.Create;
bar: Handler := TBar.Create;