inky
inky copied to clipboard
Usage of external function will end the story immediately
To reproduce:
EXTERNAL Foo()
Hello World!
~ Foo()
Output is just End of Story.
When removing ~ Foo() however, Hello World! is printed as expected.
It's actually crashed - functions need to be defined in the ink script ("a fallback" that inky uses). Without a === function Foo() the ink doesn't compile and run. So there is a bug here - but it's the lack of a proper error message.
The correct way is to define a function too in inky
~ Foo()
EXTERNAL Foo()
=== function Foo()
Hello World!
~ return