[fpc-devel] Copy/move operator
Ryan Joseph
genericptr at gmail.com
Tue Jun 18 16:09:25 CEST 2019
> On Jun 18, 2019, at 10:00 AM, Ben Grasset <operator97 at gmail.com> 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 right value (dest) is a temporary value (i.e., not mapped to static memory). Sven and Jonas hinted this could be dangerous but I personally think it’s pretty manageable (and completes the management operators).
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?
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list