diff --git a/Doc/Manual/Lua.html b/Doc/Manual/Lua.html index e6cf11b9f..fce7b8f07 100644 --- a/Doc/Manual/Lua.html +++ b/Doc/Manual/Lua.html @@ -990,7 +990,7 @@ The current list of operators which can be overloaded (and the alternative funct
  • __sub__ operator-
  • __mul__ operator *
  • __div__ operator/ -
  • __neg__ unary minus +
  • __unm__ unary minus
  • __call__ operator() (often used in functor classes)
  • __pow__ the exponential fn (no C++ equivalent, Lua uses ^)
  • __concat__ the concatenation operator (SWIG maps C++'s ~ to Lua's ..) @@ -1037,7 +1037,29 @@ It is also possible to overload the operator[], but currently this cann void __setitem__(int i,double d); // i is the index, d is the data }; - +

    +C++ operators are mapped to Lua predefined metafunctions. Class inherits from its bases the following list of metafunctions ( thus inheriting the folloging +operators and pseudo-operators):

    + +

    No other lua metafunction is inherited. For example, __gc is not inherited and must be redefined in every class. __tostring is subject to a special handling. If absent in class and in class bases, a default one will be provided by SWIG

    +

    27.3.12 Class extension with %extend