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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal