"Lua"의 두 판 사이의 차이
ph
7번째 줄: | 7번째 줄: | ||
[https://coronalabs.com/blog/2015/12/01/tutorial-understanding-the-colon-vs-dot-operator/ Tutorial: Understanding the colon vs. dot operator] | [https://coronalabs.com/blog/2015/12/01/tutorial-understanding-the-colon-vs-dot-operator/ Tutorial: Understanding the colon vs. dot operator] | ||
− | 별다른일 없으면 그냥 dot을 쓸 것. | + | 별다른일 없으면 그냥 dot을 쓸 것. 자신(self)이 필요하면 직접 넘기는 식으로. |
2017년 6월 9일 (금) 10:53 판
lua 5.3 reference manual
colon vs. dot
A call v:name(args) is syntactic sugar for v.name(v,args), except that v is evaluated only once.
Lua manual : Function Calls
Tutorial: Understanding the colon vs. dot operator
별다른일 없으면 그냥 dot을 쓸 것. 자신(self)이 필요하면 직접 넘기는 식으로.