AI Zone Admin Forum Add your forum

Chatbot Conference in the Netherlands on Tue 24, 2018, with international line-up! Check it out

[Featurewish] Allow macro cross references between files


I often have the problem that I have to use cross references between files:




There is no way I know of to compile them without splitting them, because regardless which file is listed first in the files text file, one macro is always not defined.

Is there a chance of either allowing macro declarations (telling the compiler that the macro will be defined later) or making the compiler scanning all macros first and and then compiling everything again?


  [ # 1 ]

Maybe.  But presently you can awkwardly manage any cycle because rules are functions (no arguments) and global variables are arguments. So you can use ^response(~mytopic.b1)  and put code in that topic at that rule.  Similarly, of course, you can embed the equivalent of rules in a function because you can use ^if(PATTERN ....) ...


  login or register to react