The following results in a generic app crash.
Type Color
r as integer
g as integer
b as integer
EndType
dim fire[320,240] as Color
fire[x,y] = newValue(x, y)
function newValue(x, y)
c as Color
// do some stuff
endfunction c
So instead I need to do this:
c as Color
c = newValue(x, y)
fire[x,y] = c
I have a vague memory of possibly seeing this mentioned within another thread somewhere, but I'm not 100% certain. It's only a minor annoyance and quite frankly I'm just thrilled to be able to return a UDT at all.
"You're all wrong. You're all idiots." ~Fluffy Rabbit