Modify ↓
Opened 11 years ago
Closed 11 years ago
#2956 closed Bug (No Bug)
EndFunc not required in the last function of the script
| Reported by: | jguinch | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.12.0 | Severity: | None |
| Keywords: | EndFunc | Cc: |
Description
With this code :
_Hello() Func _Hello() MsgBox(0, "", "Hello !") MsgBox(0, "", "Hello again !")
I can compile it (from the context menu) and run it (double click on the file).
Maybe the end of file acts like EndFunc ?
Attachments (0)
Change History (3)
comment:3 by , 11 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Not so strange if you realize that a script with a single line MsgBox(...) will not complain about Exit missing. From there to regarding EOF as an implicit Exit is a small and rather logical step.
Closing now.
Note:
See TracTickets
for help on using tickets.

It seems that EOF has Exit semantics, as the following tends to demonstrate: you see only one MsgBox.
I would classify as "No bug" since Au3Check correctly raises an error. Think of it as a feature.