Fix comment typos
This commit is contained in:
parent
46cfdba5ca
commit
def3c08943
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
-- demo of lua swig capacilities (operator overloading)
|
||||
-- demo of lua swig capacities (operator overloading)
|
||||
require("import") -- the import fn
|
||||
import("operator_overload") -- import lib
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ assert(b>=c)
|
|||
assert(b>d)
|
||||
assert(b>=d)
|
||||
|
||||
-- lua does not support += operators: skiping
|
||||
-- lua does not support += operators: skipping
|
||||
|
||||
-- test +
|
||||
f=Op(1)
|
||||
|
|
@ -50,7 +50,7 @@ assert(f/g==Op(1))
|
|||
|
||||
--lua 5.0.2 defines that unary - is __unm(self,nil)
|
||||
--lua 5.1.2 defines that unary - is __unm(self,self)
|
||||
--C++ expectes unary - as operator-()
|
||||
--C++ expects unary - as operator-()
|
||||
--however the latest version of SWIG strictly checks the number of args
|
||||
--and will complain if too many args are provided
|
||||
--therefore disabling these tests for now
|
||||
|
|
@ -79,7 +79,7 @@ assert(tostring(Op(1))=="Op(1)")
|
|||
assert(tostring(Op(-3))=="Op(-3)")
|
||||
|
||||
|
||||
-- check that operator overloads are correctly propogated down inheritance hierarchy
|
||||
-- check that operator overloads are correctly propagated down inheritance hierarchy
|
||||
|
||||
a_d=OpDerived()
|
||||
b_d=OpDerived(5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue