"Lua"의 두 판 사이의 차이
ph
6번째 줄: | 6번째 줄: | ||
[https://www.lua.org/manual/5.3/manual.html#3.4.10 Lua manual : Function Calls]<br> | [https://www.lua.org/manual/5.3/manual.html#3.4.10 Lua manual : Function Calls]<br> | ||
[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을 쓸 것. 자신이 필요하면 직접 넘기는 식으로. |
2017년 6월 9일 (금) 10:52 판
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을 쓸 것. 자신이 필요하면 직접 넘기는 식으로.