summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2012-04-19 15:19:41 +0200
committerMike Pall <mike>2012-04-19 15:19:41 +0200
commit543963146041b8383171fa267fab351acdf50d35 (patch)
treedeb8221254645339087a50d54c20f944aad55fba
parent633b248109fb893965cafc44e9801fde4d284474 (diff)
downloadluajit2-543963146041b8383171fa267fab351acdf50d35.tar.gz
FFI: Clarify docs wrt. 'local ffi = ...' and the interactive prompt.
-rw-r--r--doc/ext_ffi_tutorial.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/ext_ffi_tutorial.html b/doc/ext_ffi_tutorial.html
index 802a2041..533273f7 100644
--- a/doc/ext_ffi_tutorial.html
+++ b/doc/ext_ffi_tutorial.html
@@ -93,6 +93,11 @@ Please note this doesn't define an <tt>ffi</tt> variable in the table
of globals &mdash; you really need to use the local variable. The
<tt>require</tt> function ensures the library is only loaded once.
</p>
+<p style="font-size: 8pt;">
+Note: If you want to experiment with the FFI from the interactive prompt
+of the command line executable, omit the <tt>local</tt>, as it doesn't
+preserve local variables across lines.
+</p>
<h2 id="sleep">Accessing Standard System Functions</h2>
<p>