Re: [fpc-devel] Copy/move operator

2019-06-18 Thread Sven Barth via fpc-devel
Ryan Joseph schrieb am Di., 18. Juni 2019, 16:09: > Not sure about inline though, I don’t think the compiler inlines these > operators at all. FPC seems to have lots of non-inlinable code these days > which is too bad. Maybe the LLVM backend will fix that someday? > Those operators can't be inl

Re: [fpc-devel] Copy/move operator

2019-06-18 Thread Ryan Joseph
> On Jun 18, 2019, at 10:00 AM, Ben Grasset wrote: > > Actually, after thinking about it some more, here's what I'd actually write > (in a perfect world where it was possible.) > What I was proposing is that we add another operator called “Move” which will be called instead of “Copy” if the

Re: [fpc-devel] Copy/move operator

2019-06-18 Thread Ben Grasset
On Mon, Jun 17, 2019 at 5:57 PM Ryan Joseph wrote: > The copy operator is always called on all assignments. Try actually > running that and you’ll see. :) > Actually, after thinking about it some more, here's what I'd actually write (in a perfect world where it was possible.) program Test; {$m

Re: [fpc-devel] Copy/move operator

2019-06-18 Thread Ben Grasset
On Mon, Jun 17, 2019 at 5:57 PM Ryan Joseph wrote: > The copy operator is always called on all assignments. Try actually > running that and you’ll see. :) > Yeah, I noticed that afterwards once I checked. I'm not sure how much sense that actually makes when the TList is a function *result* as it