3 ms·
Nice. I wish for ability for function to return multiple values. Is it possible at all?
by jemeshsu 15y ago
Nice. I wish for ability for function to return multiple values. Is it possible at all?
- 0x0 15y agoProbably not, but with the new dictionary literal syntax, returning a dictionary with a set of keys-values should be a breeze :)
- pornel 15y agoYou can use C99 struct literals: return (struct x){a,b}; Small structs may be passed in registers. http://stackoverflow.com/a/3355560/27009 http://stackoverflow.com/a/3355560/27009