Article:
  Introducing Lua
Subject:   Like JavaScript
Date:   2006-02-21 02:27:17
From:   iconara
Lua is very similar to JavaScript (one of the most misunderstood programming languages). __index is JavaScript's prototypes, the tables are very similar to JavaScript's dynamic objects, and so on. But does Lua have closures? that would be nice.
Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Like JavaScript
    2006-02-21 05:51:23  kfieldho2 [View]

    Yes, a JavaScript programmer would be fairly comfortable "inside" Lua.

    To answer your question, yes Lua has full support for closures. Section 6.1 in Programming in Lua disucsses them (http://www.lua.org/pil/6.1.html)

    Keith