> On Jun 18, 2019, at 10:00 AM, Ben Grasset <[email protected]> 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

_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to