-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
I've got a specific question related to how Liquidsoap scripts work.
I'd like to 'propagate' an updated value from outside the definition of
a function, and not rely on global variables.
I was wondering how the *ref* keyword works, is it used to support
C-like pointers? I can't find the specific help page right now.
Say I've got a function "dummy_procedure" and I'd like to 'export' a
variable from outside the scope of this function, the caveat is that the
return value is already used for something else.
Can I use the *ref* keyword somehow to avoid composite return values
def dummy_procedure(_ref_x) =
_ref_x = 5
7
end
x = 4
ref_x = ref x;
y = dummy_procedure(ref_x)
or should I use lists or maps to return both x and y from
dummy_procedure at the same time?
Thanks in advance.
- --
best regards,
okay_awright
<okay_awright AT ddcr DOT biz>
[PGP key on request]
-----BEGIN PGP SIGNATURE-----
iQEcBAEBAgAGBQJONBPhAAoJEN2X/7ng71pTyu8IAI/QcR3zuPnz5SIdbsiBV1ut
0QVkkozR3ZsFzpYuvOZVgyhjMjQbp21QCm0I3rZG9tMXRSfHR0MZiztwG+q+VFAH
RUQ0IpIZXUD7KhEJfv/Y2luPgNd5X/jIdwOEpj5LVv1pwutAky81fUFx+39ffTwG
bbYj7k3+1jeh7GDMb6RX3gKsIf1rE6fLLnYzJyK+4X7EWExKtM4kWNE8hnUCYSF6
KMocMy47X8G7TtZzoCri4N/g+1g4oFW9A5FCdWxIs2XwedX/ZF2ljwXy2BTv3XrP
EasS93HpSOo9fPZvlRIMGpPnIof83BeRXkmAAMA8CfCY2WbVoaJ/8fPjmU2zZvU=
=JAw4
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users