On 19 Jan 2010, at 12:57, Michael Van Canneyt wrote:
It should not compile in Delphi mode. Array syntax is not supported by Delphi.
Oops, only now I see he was trying to index a pointer like an array. And even in FPC I would very strongly recommend against typecasting a dynamic array to a pointer and then performing operations using this pointer. Dynamic arrays are opaque structures and trying to directly access the underlying data should never be done.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal