Modify ↓
#907 closed Bug (No Bug)
Local and Global varaibleas has no different
Reported by: | wellic72@… | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.0.0 | Severity: | None |
Keywords: | Local variables | Cc: |
Description
See sources:
File: main.au3
#include "file1.au3" #include "file2.au3" consoleWrite(x) ; Error compilation? The x duplicate. Why? f() ; Where from а from file1 or file2
File: file1.au3
Local x = 0 ;It is realy Local variable, isn't ? :) Func f() x = 1 ConsoleWrite(x) endfunc
File: file2.au3
Local x = 100 ;I would like really Local variable for program Func f() ; analogously make for Local function Local Func f() x = 200 ConsoleWrite(x) endfunc
If you replace Local to Global result doesn't change. Why?
Attachments (0)
Change History (2)
comment:1 Changed 16 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
You need to read WikiStart, the documentation and learn how to use the forum.