Inserting a Parameter as a Value Object

A parameter can be put into a script as a Value object.

See Also
Representing a Parameter as Its Primitive Type
Inserting a Parameter as a Variable Object

The advantage of a Value object is that there is no need to copy the contents out to the parameter— any change to the Value immediately updates the associated parameter. For example, a real parameter could be represented by a RealValue. Value objects have methods like setValue(String) or getAsReal(). Value objects can also be updated inside functions, allowing you to emulate the C-language pass-by-reference operator &.