Overview
Cross-Skilling from IRIS objectScript to Python it becomes clear there are some fascinating differences in syntax.
One of these areas was how Python returns Tuples from a method with automatic unpacking.
Effectively this presents as a method that returns multiple values. What an awesome invention :)
out1, out2 = some_function(in1, in2)
ObjectScript has an alternative approach with ByRef and Output parameters.
Do ##class(some_class).SomeMethod(.inAndOut1, in2, .out2)
Where:
- inAndOut1 is ByRef
- out2 is Output
The leading dot (".") in front of the variable name passes ByRef and for Output.
The
.png)





