Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Values, Copies, and Places

An ordinary assignment gives an independent array value. Updating the copy leaves the original alone.

let original = [20 22]
let copy = original
copy[0] = 99
printl(original[0]+original[1])

Expected output:

42

Run the example from a file with dewy example.dewy. Its exact output is checked by the website build on the native release target.

Design boundary. The Values, Copies, and Places reference specifies the complete language rules. A passing example covers this program only. See generated coverage for related acceptance programs and unmeasured areas.