Re: [fpc-devel] creating call nodes for managed operators

2023-07-23 Thread Hairy Pixels via fpc-devel
> On Jul 23, 2023, at 7:13 AM, Benito van der Zander via fpc-devel > wrote: > > with my patch, "copy" can be inlined! > initialize and finalize some times, too. Amazing! > > There are two places that call them. compiler/nld.pas and > compiler/ngenutil.pas where it creates the call nodes.

Re: [fpc-devel] creating call nodes for managed operators

2023-07-23 Thread Benito van der Zander via fpc-devel
Hi, main fails to cycle compile rtl-console/fv-package due to a TEnhancedVideoCell record. fixes does not have a TEnhancedVideoCell record, so it cannot fail there. But if I copy TEnhancedVideoCell into a new project file, I can compile it with the patched fixes, too What is the performanc

Re: [fpc-devel] Maybe room for better documentation? open array as var param

2023-07-23 Thread Martin via fpc-devel
On 20/07/2023 18:41, Martin Frb via fpc-devel wrote: For const param, it is well documented that the value (that includes the variable that is passed) must not be changed. But for "var param"? Actually my previous example was not even the generic case. Passing any variable that is allocated