access a structured pointer like an array
Posted: Fri Dec 16, 2016 7:04 pm
this is something that has been bothering me for a long time now.
i really miss the possibility to access a structured pointer like an array:
same goes for strings:
i know there are dozen ways of how to achieve this, but it just isnt as small and sexy as the above code.
c ya,
nco2k
i really miss the possibility to access a structured pointer like an array:
Code: Select all
Protected *mem.struc
For i = 0 To 9
Debug *mem[i]\bla
Next
Code: Select all
String$ = "ABC"
For i = 0 To 3
Debug String$[i];\c
Next

c ya,
nco2k