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 は をサポートしていませんoutが、ref代わりに使用できるキーワードをサポートしています。
out
ref
例:
def Swap(ref a as int, ref b as int): t = a a = b b = t x = 1 y = 2 Swap(x, y)