The above code executes(note the missing semicolon at the end of die() statement) successfully.What I deduce from this is that the last statement (Technically die() is the last statement in the above code) in the script need not end with a semicolon.
I personally believe that people already explained to you pretty much everything that needed to be explained. I would only like to underline a severe thinko on your part: your guess that the semicolon could be omitted on a statement because that statement is the last one to be executed is inconsistent. In fact it's a syntactical issue: whether a semicolon is a statement separator or terminator is something that affects the way a program is parsed, and that happens even before the program itself becomes something that can be executed. To do what you say, an interpreter (or compiler) should run a program before parsing it! Or more realistically, but not much, do a simulation in advance: anyway, something very awkward...
In reply to Re: Strange finish!!
by blazar
in thread Strange finish!!
by narainhere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |