2012-06-14 43 views

回答

2

Boo不支持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)