Re: store bug
- Posted by ghaberek (admin) Mar 09, 2021
- 903 views
jmduro said...
Wen I run following code I get a wrong result:
include std/sequence.e include std/pretty.e include std/console.e sequence s = {"first", {}} sequence t = store(s, {2}, {"second", {}}) pretty_print(1, t, {3}) puts(1, "\n") maybe_any_key()
{ "first", { "first", { "second", "" } } }
It looks like this has been corrected. When I run your code I get the expected result.
{ "first", { "second", "" } }
I used both Euphoria 4.1 and the current source build. I think this might be the commit that fixed it: 7ea6c0a.
Are you using 4.1? Or maybe using 4.0 includes with 4.1 binaries?
-Greg