Lua 5.1.3 (Stable branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Lua 5.1.3 (Stable branch)
# 1  
Old 02-10-2008
Lua 5.1.3 (Stable branch)

Lua is a programming language originally designed for extending applications, but also frequently used as a general-purpose, stand-alone language. It combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. It is dynamically typed, interpreted from bytecodes, and has automatic memory management, making it ideal for configuration, scripting, and rapid prototyping. It is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost. It has been used on games such as Vendetta, FarCry, Homeworld2, Painkiller, and World of Warcraft. License: MIT/X Consortium License Changes:
All bugs reported against 5.1.2 have been fixed.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Programming

A make-like build utility based on Lua

xmake is a make-like build utility based on lua. (Link to project site: xmake) The project focuses on making development and building easier and provides many features (.e.g package, install, plugin, macro, action, option, task ...), so that any developer can quickly pick it up and enjoy the... (1 Reply)
Discussion started by: waruqi
1 Replies

2. Programming

[LUA] Set variables according to if file exists

Heya I'm using Awesome WM with the Vicious widget library. As i'm using multi boot, Win8, Fedora and Arch, i have my WM-Config shared accross my GNU/Linux installations. The regarding snippet: -- Functions -- Its just a workaround for an 'unstable' 'hwmon/hwmon' definition of Fedora21 -... (0 Replies)
Discussion started by: sea
0 Replies

3. UNIX Desktop Questions & Answers

[LUA / DE] AwesomeWM & Vicious Widgets

Hello Allthough i dont know LUA, despite its name, i do love the window manager that was created using that language. By now, I'm enough familiar with LUA so i could adapt (most of) the recent changes so i have vicous widgets working again - by the means of no error messages on start up. I... (1 Reply)
Discussion started by: sea
1 Replies

4. Shell Programming and Scripting

[LUA-Awesome] Can i use $XDG_XY_DIR inside a lua script?

Heyas I'm a fan of AwesomeWM, but i had failed to learn lua, though, i'm quite satisfied with the cofniguration i have by now. Either way, i'd like to know if i could 'call' those XDG_XY_DIR variables which are located on my linux ~/.config/user-dirs.dirs. While to call scripts i use... (0 Replies)
Discussion started by: sea
0 Replies

5. UNIX for Dummies Questions & Answers

Installing PECL LUA on Centos for PHP

I'm kinda new to Linux, I'm mostly run websites, and it's rather easy to do everything... except install this PECL LUA plugin. :wall: I start by running this command: pecl install lua-0.9.4 downloading lua-0.9.4.tgz ... Starting to download lua-0.9.4.tgz (12,617 bytes) .....done: 12,617... (0 Replies)
Discussion started by: blackstar
0 Replies
Login or Register to Ask a Question
doc::lua-oocairo-path(3)				       Lua OO Cairo binding					  doc::lua-oocairo-path(3)

Name
       lua-oocairo-path - Path object

Introduction
       A path object represents a series of path instructions like "move_to" and "line_to", as supplied to a context object when defining shapes
       for drawing.  They can be created by issuing instructions on a context object and then calling "cr:copy_path()" or "cr:copy_path_flat()"
       (see lua-oocairo-context(3)).  A path can then be added back to the current path by calling "cr:append_path()".

Methods
       Currently only the following method can be called on a path object:

       path:each ()
	   Returns an iterator function and initial values needed to iterate over the instructions in the path using a Lua "for" loop.	This can
	   be used to translate the Cairo path piece by piece, perhaps to encode it in some unusual vector graphics format, or to translate it
	   into calls to another API like OpenGL.

	   The iterator function will return three values each time it is called.  The first is a number, which should be ignored (but is needed
	   to keep track of the current position in the list of instructions).	The second value is a string naming the instruction to be
	   performed, and the last value is either nil or a table (array) of numbers which are the arguments of the instruction.

	   This example simply prints out the instructions in the order they were issued on the context object cr:

	       for _, instr, args in cr:copy_path():each() do
		   if args then
		       print(instr, unpack(args))
		   else
		       print(instr)
		   end
	       end

	   The following instructions can be included:

	   move-to
	       Set current point.  Comes with a table of two numbers.

	   line-to
	       Draw straight line.  Comes with a table of two numbers.

	   curve-to
	       Draw curved line.  Comes with a table of two numbers, the two control points first and then the destination point.

	   close-path
	       Draw line back to start point.  The extra arguments value will be nil.

1.4								    2011-05-18						  doc::lua-oocairo-path(3)