AGK includes...

Started by therevills, April 02, 2019, 10:09:15

Previous topic - Next topic

Qube

Quote from: Derron on April 03, 2019, 10:58:08
It all sounds as if you could use "insert" for both things - add the "insert" at the end and you have the "include" behaviour.

Both commands act as kind of "placeholder" with the difference of "include" not replacing that line but "removing that line + append at the end".

Maybe they differ when it comes to compilation.
That's exactly how it works. #insert "code.agc" becomes the code in code.agc and #include "code.agc" appends it to the end of the file before compilation. Personally I don't see the point of having both and #include should be the only one and act like #insert.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

blinkok

I don't think insert will allow you to insert a file that contains insert/include

Qube

Quote from: blinkok on April 23, 2019, 22:38:37
I don't think insert will allow you to insert a file that contains insert/include
True, it doesn't like that at all.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.