May 21, 2019, 10:54:44 PM

Author Topic: AGK includes...  (Read 395 times)

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1822
Re: AGK includes...
« Reply #15 on: April 23, 2019, 10:05:02 PM »
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.
Until the next time...

Offline blinkok

  • Jr. Member
  • **
  • Posts: 92
Re: AGK includes...
« Reply #16 on: April 23, 2019, 10:38:37 PM »
I don't think insert will allow you to insert a file that contains insert/include

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1822
Re: AGK includes...
« Reply #17 on: April 23, 2019, 10:47:22 PM »
I don't think insert will allow you to insert a file that contains insert/include
True, it doesn't like that at all.
Until the next time...