diff --git a/SWIG/Doc/Manual/Lua.html b/SWIG/Doc/Manual/Lua.html index a2bdaa49f..5780ed37b 100644 --- a/SWIG/Doc/Manual/Lua.html +++ b/SWIG/Doc/Manual/Lua.html @@ -465,16 +465,20 @@ you can use it in Lua like this:
> l = example.List()
-> l.insert("Ale")
-> l.insert("Stout")
-> l.insert("Lager")
-> print(l.get(1))
+> l:insert("Ale")
+> l:insert("Stout")
+> l:insert("Lager")
+> print(l:get(1))
Stout
-> print(l.length)
+> print(l:length)
3
>
+
+(Note: for calling methods of a class, you use class:method(args), not class.method(args), its an easy mistake to make. However for data attributes it is class.attribute) +
+Class data members are accessed in the same manner as C structures. Static class members present a special problem for Lua, as Lua doesn't have support for such features. Therefore, SWIG generates wrappers that try to work around some of these issues. To illustrate, suppose you have a class like this:
class Spam {
@@ -680,9 +684,6 @@ When wrapped, it works like you expect:
12.0
-(Note: for calling methods of a class, you use class:method(args), not class.method(args), its an easy mistake to make.) -
-One restriction with operator overloading support is that SWIG is not able to fully handle operators that aren't defined as part of the class. For example, if you had code like this
class Complex {