[Gambas-user] [Gambas Bug Tracker] Bug #928: Would it be possible to be admitted declare when going to be used

bugtracker at ...3416... bugtracker at ...3416...
Tue Apr 26 10:29:02 CEST 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.928&from=L21haW4-

Julio SANCHEZ reported a new bug.

Summary
-------

Would it be possible to be admitted declare when going to be 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