{"id":727,"date":"2016-12-02T11:08:12","date_gmt":"2016-12-02T20:08:12","guid":{"rendered":"\/blog\/?p=727"},"modified":"2023-09-21T09:37:50","modified_gmt":"2023-09-21T00:37:50","slug":"lua-%ec%96%b8%ec%96%b4%ec%97%90%ec%84%9c-%ec%a3%bc%ec%9d%98-%ed%95%a0-%ec%a0%90","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=727","title":{"rendered":"lua \uc5b8\uc5b4\uc5d0\uc11c \uc8fc\uc758 \ud560 \uc810"},"content":{"rendered":"\n<div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\ub2e4\ub978 \uc5b8\uc5b4\uc640 \ub2e4\ub978 \uc810\uc774 \uc788\uc73c\ubbc0\ub85c \uc8fc\uc758\ud574\uc57c \ud55c\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \uc778\ub371\uc2a4\ub294 0 \uc774 \uc544\ub2c8\ub77c 1\ubd80\ud130 \uc2dc\uc791\ud55c\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 ==\uc758 \ubc18\ub300 \uc5f0\uc0b0\uc790\ub85c \ubcf4\ud1b5\uc740 !=, &lt;&gt;\ub4f1\uc744 \ub9ce\uc774 \uc0ac\uc6a9\ud558\ub294\ub370, \ub8e8\uc544\uc5d0\uc11c\ub294 ~=<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \uae30\ubcf8\uc801\uc778 \uc790\ub8cc\ud615\uc740 nil, boolean, number(double), string, function, table<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ub17c\ub9ac\uc5f0\uc0b0\uc790\ub3c4 \ud0c0 \uc5b8\uc5b4\uc5d0\uc11c !, &amp;&amp;, ||, ^^\ub4f1\uc744 \uc0ac\uc6a9\ud558\ub294\ub370 lua\uc5d0\uc11c\ub294 \ub2e8\uc5b4 \uadf8\ub300\ub85c not, and, or\ub85c \uc4f0\uace0 xor\uc740 \uc874\uc7ac\ud558\uc9c0 \uc54a\ub294\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 . \uc740 \uc18d\uc131\uc774\uac70\ub098, self \ub97c \ucc38\uc870\ud558\uc9c0 \uc54a\ub294 method\uc5d0 \uc0ac\uc6a9<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 : self \ub97c \ucc38\uc870\ud558\ub294 \ud568\uc218\uc5d0 \uc0ac\uc6a9<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 A+=B \uac19\uc740 \uaf34\uc740 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc73c\uba70 \ubb34\uc870\uac74 A = A + B \ucc98\ub7fc \uc791\uc131\ud574\uc57c\ud55c\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 0 \uc740 false \uac00 \uc544\ub2c8\ub77c true \uc774\ub2e4. false \ub294 nil\/false<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \uc8fc\uc11d\uc740 -- \ub85c \uc2dc\uc791\ud55c\ub2e4. --[[ &nbsp; &nbsp;]] \ub85c \ubd88\ub7ed \uc8fc\uc11d\uc744 \ud55c\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ubc18\ubcf5\uc81c\uc5b4\ubb38\uc5d0 continue\uac00 \uc5c6\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 GOTO\uac00 \uc874\uc7ac\ud55c\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ud568\uc218\ub97c \uc815\uc758\ud558\ub294\uac8c \uc544\ub2c8\ub77c \ud568\uc218\ub97c \ub9cc\ub4e4\uc5b4 \ubcc0\uc218\uc5d0 \ub300\uc785\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \uc791\uc131\uc774 \uac00\ub2a5. (\uc774\ub294 JavaScript\ub3c4 \ub3d9\uc77c\ud558\ub2e4.)<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ubb38\uc7a5\uc758 \ub05d\uc5d0 ; \ub97c \ubd99\uc77c \uc218\ub3c4 \uc788\uace0 \uc548\ubd99\uc77c \uc218 \ub3c4 \uc788\uc73c\ub098 \uad00\ub840\uc0c1 \uc548\ubd99\uc778\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ud568\uc218\uc758 ( ) \ub294 \ubd99\uc77c \uc218\ub3c4 \uc548\ubd99\uc77c \uc218\ub3c4 \uc788\uc73c\ub098 \ubcf4\ud1b5 \ubd99\uc778\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ubb38\uc790\uc5f4\uc744 \ud569\uce58\ub294 \uc5f0\uc0b0\uc790\ub294 + \uac00 \uc544\ub2c8\ub77c .. \uc774\ub2e4.<\/span><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><br \/><\/font><\/div><div><font face=\"\uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, Arial Unicode MS, Tahoma, MS Serif\"><span style=\"font-family: \uad74\ub9bc, \ub3cb\uc74c, \ub098\ub214\uace0\ub515, &quot;Arial Unicode MS&quot;, Tahoma, &quot;MS Serif&quot;;\">\u25a0 \ubcc0\uc218\ub294 \ubaa8\ub450 \ud3ec\ud568\ud560 \uc218 \uc788\uc73c\ub2c8, \ubb38\uc790\ub97c \ub354\ud560 \ub584\ub294 \uaf2d s = \"\" \ucc98\ub7fc \ubb38\uc790\uc5f4\ub85c \ub9cc\ub4e0 \ud6c4 \ubb38\uc790\uc5f4\uc744 \ub354\ud55c\ub2e4.<\/span><\/font><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ub2e4\ub978 \uc5b8\uc5b4\uc640 \ub2e4\ub978 \uc810\uc774 \uc788\uc73c\ubbc0\ub85c \uc8fc\uc758\ud574\uc57c \ud55c\ub2e4. \u25a0 \uc778\ub371\uc2a4\ub294 0 \uc774 \uc544\ub2c8\ub77c 1\ubd80\ud130 \uc2dc\uc791\ud55c\ub2e4. \u25a0 ==\uc758 \ubc18\ub300 \uc5f0\uc0b0\uc790\ub85c \ubcf4\ud1b5\uc740 !=, &lt;&gt;\ub4f1\uc744 \ub9ce\uc774 \uc0ac\uc6a9\ud558\ub294\ub370, \ub8e8\uc544\uc5d0\uc11c\ub294 ~= \u25a0 \uae30\ubcf8\uc801\uc778 \uc790\ub8cc\ud615\uc740 nil, boolean, number(double), string, function, table \u25a0 \ub17c\ub9ac\uc5f0\uc0b0\uc790\ub3c4 \ud0c0 \uc5b8\uc5b4\uc5d0\uc11c !, &amp;&amp;, ||, ^^\ub4f1\uc744 \uc0ac\uc6a9\ud558\ub294\ub370 lua\uc5d0\uc11c\ub294 \ub2e8\uc5b4 \uadf8\ub300\ub85c not, and, or\ub85c \uc4f0\uace0 xor\uc740 \uc874\uc7ac\ud558\uc9c0 \uc54a\ub294\ub2e4. \u25a0 . [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-development_language"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}