Open kaisalmon opened 7 months ago
I'm now realising that variables can only be set in prelude
. I cannot find this concept of a prelude anywhere in the Inkle docs, and it seems to be an artificial limitation baked into this implementation
EDIT: Yeah, it looks like variables are only considered at the start of the whole story, and then are "baked" into the lines? It looks like a total refactor, with possibly a total removal of the prelude
concept is required to allow the use of (dynamic) variables?
Describe the issue The following unit test fails
However, when running Inky, this code:
prints out
without any issue.
To Reproduce Copy paste the unit test into
tests\setting_variables.rs
Expected behavior The unit test above should pass
Screenshots
System (please complete the following information):
Additional context The error returned is
I am to attempt and fix this I am aware this repo seem very very dead. I ran into this issue when experimenting with adding additional features into the repo