Added a lua specific carrays.i which adds the operator[] support.

modified the main code to make it not emit all the class member functions & accessors

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mark Gossage 2007-01-22 04:59:16 +00:00
commit a997938b63
6 changed files with 90 additions and 16 deletions

View file

@ -19,6 +19,6 @@ for i=0,100 do
a(i) -- Note: function call
b(math.sqrt(i)) -- Note: function call
end
print(a:result()) -- should be 5050
print(b:result()) -- should be ~771.46
print("int sum 0..100 is",a:result(),"(expected 5050")
print("double sum 0..100 is",b:result(),"(expected ~771.46)")