Closed georgejecook closed 3 years ago
@georgejecook I don't think your statement is correct. I just ran this BrightScript program, and it compiled on-device and ran without issue. I think there might be something else at play here.
sub main()
DoSomething("anything")
end sub
function DoSomething(args)
if not MU_isArray(args) then
log_error([
"apply expects an array of args"
])
return invalid
end if
end function
sub log_error(arr)
for each item in arr
print item
end for
end sub
function MU_isArray(args)
return false
end function
closing - old.
this bs
compiles to:
that is NOT legal brs; I just tried, and multiline array literal declaration is for assign only; can't be used inline in function calls.