Not necessarily a bug, but certainly undesired behaviour:
temp as color_type
tool_applyColor(1, temp) `<- does not work
tool_applyColor(1) `<- works
end
function tool_applyColor(tID as integer , color as color_type )
print "Success"
endfunction
`if this type declaration happens to be set *before* the function declaration above, everything works fine
type color_type
r as float
g as float
b as float
a as float
endtype
Because
color_type is declared
after the
tool_applyColor function and not before, that function seems to simply leave the color parameter out without any error/warning whatsoever.
It's not too unusual that a certain order of declarations is required, but the compiler really should tell me if it decides to just ignore a function's parameter.
(Tested in DBP 7.61, but as I couldn't find a single thread on the issue I just assumed it hasn't been discussed yet and thus probably hasn't been fixed in 7.7 either.. if that assumption happens to be wrong, sorry about that)