Just tried the new 2.7 beta, which has a lot of features I'm really looking forward to.
On compile of an existing app, I noticed that the log warned that some variables had no type for this code:
Turns out that this syntax, while valid during a DIM statement, isn't for a sub. It's supposed to be more explicit:
I assume it worked in earlier versions because B4A is easygoing about types and does automatic casting.
Would it be possible/useful for the first syntax shown above to work? Would make DIM and SUB consistent, and seems to be more readable. Thoughts?
On compile of an existing app, I noticed that the log warned that some variables had no type for this code:
B4X:
Sub drawLineOnPanel(x1, y1, x2, y2 As Int)
Turns out that this syntax, while valid during a DIM statement, isn't for a sub. It's supposed to be more explicit:
B4X:
Sub drawLineOnPanel(x1 As Int, y1 As Int, x2 As Int, y2 As Int)
I assume it worked in earlier versions because B4A is easygoing about types and does automatic casting.
Would it be possible/useful for the first syntax shown above to work? Would make DIM and SUB consistent, and seems to be more readable. Thoughts?