Input/Output multiple values from function
Jabari Zakiya
jzakiya at gmail.com
Wed Aug 28 04:19:49 UTC 2019
I have a function (say func1) that takes 1 input value (an
integer number) and outputs 4 values (2 integers and 2 arrays of
integers).
Then inside another function (say func2) I provide the 1 input to
func1 and then want to assign its 4 output values to their
appropriate final variables that will use them.
Conceptually I want to do below:
func2 { .......; (a, b, c, d) = func1(i) }
I tried using a struct but compiler keeps complaining.
Thanks for help in advance.
More information about the Digitalmars-d-learn
mailing list