Re: [fpc-pascal] Concat TCollection?

2020-05-03 Thread Michael Van Canneyt
On Sun, 3 May 2020, Ryan Joseph via fpc-pascal wrote: On May 3, 2020, at 4:04 PM, Michael Van Canneyt wrote: Just set the Collection property of the items to the concatenated collection instance. Note that this effectively moves the items. That means I'll need to set it back later rig

Re: [fpc-pascal] Concat TCollection?

2020-05-03 Thread Ryan Joseph via fpc-pascal
> On May 3, 2020, at 4:04 PM, Michael Van Canneyt > wrote: > > Just set the Collection property of the items to the concatenated collection > instance. > > Note that this effectively moves the items. That means I'll need to set it back later right? The original lists are being kept alive b

Re: [fpc-pascal] Concat TCollection?

2020-05-03 Thread Michael Van Canneyt
On Sun, 3 May 2020, Ryan Joseph via fpc-pascal wrote: I have many TCollection's that I need to concat together into one larger collection for streaming. Since it's just a list I thought I could add the elements together but it appears TCollection requires that it allocate each item. Is the

[fpc-pascal] Concat TCollection?

2020-05-03 Thread Ryan Joseph via fpc-pascal
I have many TCollection's that I need to concat together into one larger collection for streaming. Since it's just a list I thought I could add the elements together but it appears TCollection requires that it allocate each item. Is there a way to do this without relocating each item of the col