SWIFT : using the XOJO "assigns" syntax

As many of you know Xojo has a ‘ASSIGNS’ syntax
this is used like this

SUB foo(index as Integer, ASSIGNS newValue as Integer)

and would be called like this

Foo(3)=9

where 3 is ‘index’ and 9 is ‘newValue’

However Swift (and few others) have this, and it need to be able to convert from one syntax to the other and remain functional

so far my idea is this

SUB foo(index as Integer, ASSIGNS newValue as Integer)

would become

Func foo(index : Int, newValue : Int)

and

Foo(3)=9

would become

Foo(3,9)

Other than the fact the the function can have 0 to n parameters not counting the ASSIGN variable, it MUST be the last parameter

Can anyone think of a usage in Xojo where the Sub FOO would NOT appear as the first token on the line?

pretty sure that grammatically Xojo wouldn’t support it & any further = on the line is a comparison operator