Re: [fpc-pascal] add a string to existed open array

2012-01-31 Thread ik
On Tue, Jan 31, 2012 at 11:19, Sven Barth wrote: > Am 31.01.2012 09:55, schrieb ik: > > Hello, >> >> I wish to create something like this: >> >> function foo(a : String; b : array of const) : string; >> begin >> Result := bar([a] + b); >> end; >> >> But this works only on Sets. >> The thing is,

Re: [fpc-pascal] add a string to existed open array

2012-01-31 Thread Sven Barth
Am 31.01.2012 09:55, schrieb ik: Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets. The thing is, that A must be before the rest of "b". and it is different then the b values, th

[fpc-pascal] add a string to existed open array

2012-01-31 Thread ik
Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets. The thing is, that A must be before the rest of "b". and it is different then the b values, that's why I extract it to a different