Just do this:
somefunction(varptr red,varptr green,varptr blue)
that's what I sometimes do but exactly what I want to avoid because it's rarely appropriate or even readable. that GetColor while the most obvious was not presented the best for an example. this is better and all would work under this method.somefunction(varptr red,varptr green,varptr blue)
local (red,green,blue) = GetColor( color:int )
local (red,green,blue,alpha) = GetColor( color:int )
local alpha = GetColor( color:int )[3] ' though we can do that now
using var can get messy and you might have to resort to a type or just returning the array and setting the vars. allowing sequential assignments of an array is also awesome for reading files and databases.