[fpc-pascal] Delphi mode syntax error
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Tue Jan 19 13:10:00 CET 2010
    
    
  
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
    
    
More information about the fpc-pascal
mailing list