Mercurial Hosting > luan
changeset 478:eb6d90fb0b5c
documentation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 15:06:46 -0600 |
parents | b8ddd55c9b11 |
children | 1285c52ea9d4 |
files | website/src/manual.html.luan |
diffstat | 1 files changed, 11 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/website/src/manual.html.luan Mon May 11 14:36:33 2015 -0600 +++ b/website/src/manual.html.luan Mon May 11 15:06:46 2015 -0600 @@ -1,3 +1,4 @@ +local Luan = require "luan:Luan" local Io = require "luan:Io" local Html = require "luan:Html" local Http = require "luan:web/Http" @@ -220,8 +221,8 @@ <p> -The library function <a href="#pdf-type"><tt>Luan.type</tt></a> returns a string describing the type -of a given value (see <a href="#6.1">§6.1</a>). +The library function <a href="#Luan.type"><tt>Luan.type</tt></a> returns a string describing the type +of a given value. @@ -268,9 +269,9 @@ <p> Luan code can explicitly generate an error by calling the -<a href="#pdf-error"><tt>error</tt></a> function. +<a href="#Luan.error"><tt>error</tt></a> function. If you need to catch errors in Luan, -you can use <a href="#pdf-pcall"><tt>pcall</tt></a> or <a href="#pdf-xpcall"><tt>try</tt></a> +you can use <a href="#Luan.pcall"><tt>pcall</tt></a> or <a href="#Luan.try"><tt>try</tt></a> to call a given function in <i>protected mode</i>. @@ -311,12 +312,12 @@ <p> You can query the metatable of any table -using the <a href="#pdf-getmetatable"><tt>get_metatable</tt></a> function. +using the <a href="#Luan.get_metatable"><tt>get_metatable</tt></a> function. <p> You can replace the metatable of tables -using the <a href="#pdf-setmetatable"><tt>set_metatable</tt></a> function. +using the <a href="#Luan.set_metatable"><tt>set_metatable</tt></a> function. <p> @@ -492,7 +493,7 @@ Whenever there is a "new_index" metamethod, Luan does not perform the primitive assignment. (If necessary, -the metamethod itself can call <a href="#pdf-rawset"><tt>raw_set</tt></a> +the metamethod itself can call <a href="#Luan.raw_set"><tt>raw_set</tt></a> to do the assignment.) </li> @@ -1817,7 +1818,7 @@ that are implemented both in Java and in Luan itself. How each function is implemented shouldn't matter to the user. Some of these functions provide essential services to the language -(e.g., <a href="#pdf-type"><tt>type</tt></a> and <a href="#pdf-getmetatable"><tt>get_metatable</tt></a>); +(e.g., <a href="#Luan.type"><tt>type</tt></a> and <a href="#Luan.get_metatable"><tt>get_metatable</tt></a>); others provide access to "outside" services (e.g., I/O). @@ -2111,7 +2112,7 @@ <p><tt><pre> function Luan.range(start, stop, step) step = step or 1 - step == 0 and Luan.error "bad argument #3 (step may not be zero)" + step == 0 and <a href="#Luan.error">Luan.error</a> "bad argument #3 (step may not be zero)" local i = start return function() if step > 0 and i <= stop or step < 0 and i >= stop then @@ -2288,7 +2289,7 @@ <p> A global variable (not a function) that holds a string containing the current interpreter version. -The current value of this variable is "<tt>Luan 0.8</tt>". +The current value of this variable is "<tt><%=Luan.VERSION%></tt>".