https://stackoverflow.com/questions/52483218/delphi-code-completion-fail-with-anonymous-methods

https://stackoverflow.com/questions/52483218/delphi-code-completion-fail-with-anonymous-methods

I have seen this question and I am curious. There is an answer that has been accepted and in fact it solves the problem but I still have the doubt. Is the code valid?

I have taken Object Pascal Handbook (the latest edition) from my shelf and I've seen that Marco Cantu in his code, in the exception handling part, uses a try-except in the inner part and then a try-finally surrounds the try-except because it protects the Object.Free.

Is there a reference somewhere about this? Or is that simply a bug? I have always used a try-except inside a try-finally and never a try-finally inside a try-except
https://stackoverflow.com/questions/52483218/delphi-code-completion-fail-with-anonymous-methods

Comments

  1. Had a similar IDE issue (pressing ENTER would add a unwanted 'end' statement) but failed to find a way to workaround it...

    ReplyDelete
  2. Edwin Yip that happens to me all the time with if statements and nesting.

    ReplyDelete

Post a Comment