PB 4.01 Dim array and Global dim array.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
CONVERT
Enthusiast
Enthusiast
Posts: 130
Joined: Fri May 02, 2003 12:19 pm
Location: France

PB 4.01 Dim array and Global dim array.

Post by CONVERT »

May be an improvement of the compiler, if possible...

The following code works.

But if you remove ";" in the first line, it does not work.

May be it should be good to warn the fact that a table was already declared as not global before...

It is not so important...

Code: Select all

; Dim table$(0)

Global Dim table$(0)

Procedure test ()
  Dim table$(10)
  table$(3) = "3ème"
  table$(5) = "5ème"
EndProcedure

test()

Debug table$(3)
Debug table$(5)

End
PureBasic 6.20 beta 2 (x64) | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled.
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Hi
It is a bug!
Why don't you post it in the bugs reports?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply