Re: PureBasic 5.30 is out !
Posted: Thu Sep 11, 2014 1:08 am
I spotted one troublesome change in 5.30 (not sure if it should be considered a bug, it's more like something being overlooked)...
> Changed: DataSection label within Procedure are now local labels.
I think this isn't such a good idea. (Well, at least for me it isn't
) or perhaps labels / datasections deserve the keyword 'Global'.
Here's the issue:
I have some code with many include files. To keep the (folded) code clean I grouped most of those includes together in a procedure called 'init()'. Put the cursor on the Procedure init() line, hit F4, and voila, all includes are hidden from sight.
Previously I could refer to the includes using their labels, all throughout my code. Now the only way to access those includes is to place them outside a procedure, otherwise the label won't be found.
I think a better solution would be allowing the use of the keyword Global, either with Datasection (and have all labels within the datasection be global) or use the keyword Global in combination with the labe itselfl.
As it is now, I'm a bit stuck with 5.30. I don't want to move all includes to the 'root' of my code so I guess I'll go back to 5.22 LTS...
(I haven't checked out the next beta, did it fix this?)
> Changed: DataSection label within Procedure are now local labels.
I think this isn't such a good idea. (Well, at least for me it isn't

Here's the issue:
I have some code with many include files. To keep the (folded) code clean I grouped most of those includes together in a procedure called 'init()'. Put the cursor on the Procedure init() line, hit F4, and voila, all includes are hidden from sight.
Previously I could refer to the includes using their labels, all throughout my code. Now the only way to access those includes is to place them outside a procedure, otherwise the label won't be found.
I think a better solution would be allowing the use of the keyword Global, either with Datasection (and have all labels within the datasection be global) or use the keyword Global in combination with the labe itselfl.
As it is now, I'm a bit stuck with 5.30. I don't want to move all includes to the 'root' of my code so I guess I'll go back to 5.22 LTS...
(I haven't checked out the next beta, did it fix this?)