| Lagoon wrote: |
I'm adding a case where it's very good to use byref. Spometimes you need a function which returns more than a value. There are two ways to do this:
1) returning an array, a struct (I prefere to use a struct when returned variables have different types, but it's not mandatory) or (in some particular cases) a dictionary
2) passing any number of (uninitialized) variables by reference and setting their values inside the function |