Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20150714050334

Can arrays be passed as parameters for user-defined functions (both input and via OUT for output)?

Ex: (that likely doesn't work)

DIM A(10), B(10) A(5) = 10 TESTME A OUT B PRINT B(5) END

DEF TESTME(IN_A OUT OUT_A) OUT_A(5) = IN_A(5) END

Though it's likely a stretch, can the RETURN statement within user-defined functions take an array instead of a variable?