Tuesday, May 1, 2012

Lua 의 Multiple assignment 를 이용한 swap

 local x = 10  
 local y = 20  
 x, y = y, x  
 print("x=" .. x)  
 print("y=" .. y)  

No comments:

Post a Comment