[fpc-pascal] Freepascal 2.2.0 released

Joost van der Sluis joost at cnoc.nl
Tue Sep 11 15:17:33 CEST 2007


Op dinsdag 11-09-2007 om 14:47 uur [tijdzone +0200], schreef Marc
Santhoff:
> Am Montag, den 10.09.2007, 12:56 +0200 schrieb Joost van der Sluis:
> 
> Since this page isn't already up:
> 
> >  http://wiki.freepascal.org/User_Changes_2.2.0
> 
> Can someone please give a short explanation of this item?:
> 
> >   * pointer[low..high] syntax to pass C-style pointer arrays to procedures
> >     using open arrays

var s:string;

begin
  s := 'hello world';
  writeln(s[6,11]);
end;

Returns 'world'. But s[6,15] will give trouble! This way you can pass a
subset of a dynamic array (string).

Joost. 




More information about the fpc-pascal mailing list