Paul Michell schrieb:
I realise that 'Array Of Single' declares a dynamic array, but is there any equivalent syntax for static data arrays in the same way that strings litterals are in effect, variable length static declarations.

You have to realize, that dynamic arrays are actually pointers (to the array 
and other administration data). So you cannot define anything to such arrays at 
declaration time because no memory is assigned to this pointer yet. You have to 
use setlength to assign memory at runtime (just as getmem would do) and only 
then you can fill it with data.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to