Explicit array sizes
Posted: Sun Jul 06, 2008 8:35 pm
Trying to make a Byte array for reading streams
The obvious thing
gives " Explicit array sizes are not currently supported.'
Couldnt find anything else ( beyond assignment to a very large zeroed literal) that would give me an exactly sized array.
eventually ended up with a callout to c#
which worked fine.
Is there some cobra Language design decision or implementation problem/complication that makes providing sized arrays an issue or is this just a 'Not Yet Implemented' item?
What would need to be done ( and to what - high level) to support explicitly sized arrays
The obvious thing
- Code: Select all
buf = Byte[256]
gives " Explicit array sizes are not currently supported.'
Couldnt find anything else ( beyond assignment to a very large zeroed literal) that would give me an exactly sized array.
eventually ended up with a callout to c#
- Code: Select all
buf = $sharp('new Byte[256]')
which worked fine.
Is there some cobra Language design decision or implementation problem/complication that makes providing sized arrays an issue or is this just a 'Not Yet Implemented' item?
What would need to be done ( and to what - high level) to support explicitly sized arrays