Re: [fpc-devel] Compile time functions

2018-07-20 Thread R0b0t1
On Fri, Jul 20, 2018 at 7:08 PM, Sven Barth via fpc-devel wrote: > Martok schrieb am Fr., 20. Juli 2018, 23:20: >> >> >> What do you think? > > > The main problem is that not all functions that would be eligible for your > approach are also declared as inline thus their node trees would not be >

Re: [fpc-devel] Compile time functions

2018-07-20 Thread Sven Barth via fpc-devel
Martok schrieb am Fr., 20. Juli 2018, 23:20: > > What do you think? > The main problem is that not all functions that would be eligible for your approach are also declared as inline thus their node trees would not be stored inside the PPU and thus you could not work with them. Additional benefit

[fpc-devel] Compile time functions

2018-07-20 Thread Martok
Hi all, inspired by Kit's concept for pure functions, I had a deeper look at what inline functions (and more importantly, the nodes involved in expanding them) can do. Let me share my proof-of-concept (which may very well become a 'poof-of-concept'...). You can find my current working branch here