Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 boo 语言中使用 out 关键字,但没有与此关键字相关的选项。如何在 boo 语言中使用它。
Boo doesn't support out, but the ref keyword, which you can use instead.
out
ref
Example:
def Swap(ref a as int, ref b as int): t = a a = b b = t x = 1 y = 2 Swap(x, y)