Is there a difference between the following two statements?

Is there a difference between the following two statements?

EDatabaseError = class(Exception);

EDatabaseError = class(Exception)
end;

I'm 96.7% sure both are equivalent, but I may be mistaken.

Comments

  1. As far as i know it's style only. There was a time where you needed to put an end; because of syntax but that changed at some point. No point in having end; there if you are not declaring new methods or overriding anything. But yeah i can be wrong. That happened before 😂

    ReplyDelete
  2. I always use the first because it looks cleaner to me.

    ReplyDelete

Post a Comment