Just being able to have an unspecified type array would be great.
For example if I could set up an array like this:
Then be able to add items like this:
j as integer
k as float
objectArray.insert(j)
objectArray.insert(k)
Then I could run through items and check them using something like:
for x=0 to objectArray.length
t as Type
t = GetType(objectArray[x])
select t
case Integer
// do integer stuff
endcase
case Float
// do float stuff
endcase
endselect
next
I'd like to be able to take it even further and test UDT's too:
if GetType(objectArray[x])=TypeOf(myType)
// do even more specific oop stuff such as methods in types
objectArray[x].myFunction()
endif
Man, that would be so handy... and don't say I should move to Pascal
I didn't like it as much as I'd hoped.
Quote: "<<It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.>> Dijkstra"
I take that as an insult by the way
I started in Basic over 30 years ago... mind you I was a Blacksmith for a long time after that! Maybe Basic sent me back to the dark ages... literally!!!
Edit: His algorithm pretty much mutilated me too...
Using AppGameKit V2 Tier 1