Re: [fpc-pascal] Undocumented SetLength functionality

2018-05-18 Thread Michael Van Canneyt
On Fri, 18 May 2018, Sven Barth via fpc-pascal wrote: Michael Van Canneyt schrieb am Di., 15. Mai 2018, 14:29: On Tue, 15 May 2018, Sven Barth via fpc-pascal wrote: Torsten Bonde Christiansen schrieb am Di., 15. Mai 2018, 12:03: Is this a feature, bug or undocumented behaviour?

Re: [fpc-pascal] Undocumented SetLength functionality

2018-05-18 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Di., 15. Mai 2018, 14:29: > > > On Tue, 15 May 2018, Sven Barth via fpc-pascal wrote: > > > Torsten Bonde Christiansen schrieb am Di., 15. Mai > 2018, > > 12:03: > > > >> Is this a feature, bug or undocumented behaviour? > >> > > > > This is a feature and absolutel

Re: [fpc-pascal] Undocumented SetLength functionality

2018-05-15 Thread Michael Van Canneyt
On Tue, 15 May 2018, Sven Barth via fpc-pascal wrote: Torsten Bonde Christiansen schrieb am Di., 15. Mai 2018, 12:03: Is this a feature, bug or undocumented behaviour? This is a feature and absolutely by design. Afair, this was allowed back in Delphi7 (which is where i copied some of

Re: [fpc-pascal] Undocumented SetLength functionality

2018-05-15 Thread Sven Barth via fpc-pascal
Torsten Bonde Christiansen schrieb am Di., 15. Mai 2018, 12:03: > Is this a feature, bug or undocumented behaviour? > This is a feature and absolutely by design. > Afair, this was allowed back in Delphi7 (which is where i copied some of > my old code from), but i'm not sure whether it was docu

[fpc-pascal] Undocumented SetLength functionality

2018-05-15 Thread Torsten Bonde Christiansen
Hi All. I just discovered that SetLength(Var S: Array; NewLength: Integer) has an undocumented (appenrently unlimited number of) overloaded functions. Any multi dimentional arrays may be sent to SetLength with appropriate dimension sizes. Making the following possible: program SetArrayLengt