Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#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 by Valik, 17 years ago

Resolution: No Bug
Status: newclosed

You need to read WikiStart, the documentation and learn how to use the forum.

comment:2 by TicketCleanup, 17 years ago

Milestone: 3.3.1.0

Automatic ticket cleanup.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.