AI Zone Admin Forum Add your forum

Chatbot Conference London On Oct 3th Erwin will be moderating on the Chatbots conference in London. Why don't you meet him there? As a visitor, you'll get a discount as well: Why don't we meet there? get a discount

We do experience some trouble with our forms and some details page. We'll fix this ASAP. Sorry for the inconvenience!
[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