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

ik idokan at gmail.com
Tue Jan 31 09:55:26 CET 2012


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 parameter.

How can I add a to the list, and make it the first element ?

Thanks,
Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120131/518a4690/attachment.html>


More information about the fpc-pascal mailing list