Parameter Passing
Arguments to routines are always passed by value; there is no pass-by-reference facility. However, parameters are allowed to be modified locally (i.e. within the callee) which is implemented very efficiently as sequences have automatic copy-on-write semantics. In other words, when you pass a sequence to a routine, initially only a reference to it is passed, but at the point the routine modifies this sequence parameter the sequence is copied and the routine updates only a copy of the original.
Read more about this topic: Euphoria (programming Language)
Famous quotes containing the word passing:
“I will frankly declare, that after passing a few weeks in this valley of the Marquesas, I formed a higher estimate of human nature than I had ever before entertained. But alas! since then I have been one of the crew of a man-of-war, and the pent-up wickedness of five hundred men has nearly overturned all my previous theories.”
—Herman Melville (18191891)