May 2018
Beginner
252 pages
6h 19m
English
Here, we must make a distinction between single, so called scalar! values, such as numbers, dates, chars, and so on (See The type system section in Chapter 3, Using Words, Values, and Types), and all other values:
The consequence of this is that scalar values cannot be changed by a function, whereas other values (such as series and objects) are changed. This can be seen in the following code snippet:
;-- see Chapter06/function-attributes.red:passing-ref: function [data][ append data 108]data: [2 3 7 42]passing-ref datadata ...