Constant array of string
With Pascal I can do:
const
·commands : array[noparse][[/noparse]0..3] of string[noparse][[/noparse]3] = ('dir','del','cpy','typ' );
how is it done with spin?
const
·commands : array[noparse][[/noparse]0..3] of string[noparse][[/noparse]3] = ('dir','del','cpy','typ' );
how is it done with spin?
Comments
To access these, you'd use a subscript that's a multiple of 4 like @command[noparse][[/noparse] 0 ] or @command[noparse][[/noparse] 12 ]. These would give you the address of the string(s). If you want to access individual characters, you could just use command[noparse][[/noparse] x ] where x is between 0 and 15.