[Gambas-user] [Gambas Bug Tracker] Bug #927: Variable Declaration declaration when used
bugtracker at ...3416...
bugtracker at ...3416...
Tue Apr 26 10:26:36 CEST 2016
http://gambaswiki.org/bugtracker/edit?object=BUG.927&from=L21haW4-
Julio SANCHEZ reported a new bug.
Summary
-------
Variable Declaration declaration when used
Type : Request
Priority : Low
Gambas version : Unknown
Product : Language
Description
-----------
Hello:
Would it be possible to be admitted declare when going to be used, instead of having it to declare the beginning of a variable sub or function?
Example:
' Gambas module file
Public Sub Main()
'Declare of a variable the beginning sub or function:
dim text as string="hello"
print text
...
...
'Variable Declaration declaration when used
dim i as integer
for i=0 to 10
print i
next
end
Regards
Julio
More information about the User
mailing list