- Implicit static Libs variable initialisation problem
Let "LibB.Script.txt" be
- Code: Tout sélectionner
declare Integer MyStaticVar;
Void Init() { MyStaticVar = 0; }
And "LibA.Script.txt" be
- Code: Tout sélectionner
#Include "LibB.Script.txt" as LibB
Void Init() { LibB::Init(); }
Then, the following is OK :
- Code: Tout sélectionner
#Include "LibB.Script.txt" as LibB
main() {
LibB::Init();
}
This is also OK :
- Code: Tout sélectionner
#Include "LibB.Script.txt" as LibB
#Include "LibA.Script.txt" as LibA
main() {
LibA::Init();
}
But this is KO :
- Code: Tout sélectionner
#Include "LibA.Script.txt" as LibA
main() {
LibA::Init();
}
- TextLib library limitation
- Code: Tout sélectionner
log(TextLib::Compose("Hello $<%1$>", "World !"));
Console Output:
_Hello $<%1$>_World !
Where "_" are seemingly unprintable characters.
However there seems to be no problem when storing the result of the call in an API variable, e.g. UIManager.UIAll.BigMessage.
- Empty function quibbling
OK :
- Code: Tout sélectionner
Void foo() {}
OK :
- Code: Tout sélectionner
Void foo(Integer i) { return; }
KO :
- Code: Tout sélectionner
Void foo(Integer i) {}