inkle / inkle/ink

Using the same parameter name in a thread can cause values to be lost

Open
#908 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

In the following structure, the use of the same parameter name ("-> knot") causes an issue. When the choice inside "level two" is selected, and the flow loops back into level_one.opt, the value of the first "knot" parameter is overwritten with value from the level two knot.

If the parameters are given different names, then the bug doesn't occur.

```
- (top)
-> level_one (-> end )
- (end)
-> END

=== level_one (-> knot)
- (opt)
<- level_two(-> opt)
* [ Knot variable is {knot} ] -> knot

=== level_two(-> knot)
* [ choosing this causes the "knot" variable to change value ]
-> knot
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.