hedy icon indicating copy to clipboard operation
hedy copied to clipboard

[BUG] List assignments are using reference copy, but is that explainable?

Open eremmel opened this issue 2 years ago • 0 comments

Describe the bug I noticed that assignment of a list to a new variable is (just as in python) a reference copy. But with a language like hedy I expect that assignments are always deep copies for mutable data types like lists.

Paste the Hedy code & level Observed at lvl 18 image

Expected behavior assignment of a list to new variable should be a deep copy.

What machine and browser you were using (optional) If the issue concerns things in the website, let us know:

  • What computer you are using (Windows, Mac, Linux?)
  • What browser you were using (Chrome, Edge, Safari)

eremmel avatar Sep 16 '22 15:09 eremmel