summaryrefslogtreecommitdiff
path: root/module/language/lua/notes.org
diff options
context:
space:
mode:
authorPhil <theseaisinhere+git@gmail.com>2011-04-21 18:05:48 -0500
committerIan Price <ianprice90@googlemail.com>2013-09-09 17:01:24 +0100
commitbecaec9a4e7042a98c2dfa5fd3af9d7c30f71f44 (patch)
tree94f4ed7ffe76db22904f085ea9c3717e43875962 /module/language/lua/notes.org
parent8c91ae59f97200208962d845dbe972ad7c3cda3c (diff)
downloadguile-becaec9a4e7042a98c2dfa5fd3af9d7c30f71f44.tar.gz
Fix and/or double evaluation. Add math.modf, math.fmod.
* module/language/lua/compile-tree-il.scm: Fix and/or double evaluation. * module/language/lua/notes.org: Add file describing known issues. * module/language/lua/parser.scm: (token-type): Recognize and/or. * module/language/lua/standard/math.scm: Add modf, fmod implementations. * test-suite/tests/lua-eval-3.test: Add another test file for basic language features.
Diffstat (limited to 'module/language/lua/notes.org')
-rw-r--r--module/language/lua/notes.org31
1 files changed, 31 insertions, 0 deletions
diff --git a/module/language/lua/notes.org b/module/language/lua/notes.org
new file mode 100644
index 000000000..49f6b12fe
--- /dev/null
+++ b/module/language/lua/notes.org
@@ -0,0 +1,31 @@
+This is an org-mode todo list of stuff that needs to be done for Guile Lua.
+
+* Before inclusion
+** DONE And/or evaluate too much
+ CLOSED: [2011-04-19 Tue 19:36]
+** DONE Standard library functions: math.modf, math.fmod
+ CLOSED: [2011-04-21 Thu 15:43]
+** TODO Variable arguments and multiple returns
+** TODO Use prompt and abort instead of throw and catch
+** TODO Standard library function: module
+** TODO Standard library function: table.sort
+** TODO Get the official test suite running
+
+* Eh
+** TODO Better testing of standard library modules io, os
+** TODO Function environments (getfenv and setfenv)
+** TODO Parser should probably be rewritten
+
+
+* Differences
+ Here are some difference in Guile Lua's behavior that should not cause
+ problems in porting Lua code.
+
+** Guile Lua will accept the "break" statement anywhere
+ For instance:
+ for k,v in table do
+ function breaky() break end
+ end
+ Would be rejected by Lua but not by Guile Lua.
+
+** math.sqrt accepts negative arguments since Guile's numeric tower is capable of representing complex numbers