qlua / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Property Lookup Bug? #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

An unknown field/property will pass through as a string, not nil or error.

Please provide any additional information below.

Not all code paths in Metamethods.getMethod return values or throw errors.

The version I have is here:

https://github.com/stevedonovan/MonoLuaInterface/blob/master/src/Metatables.cs#L
133

and it has an explicit failed flag. This version also has simplified array 
handling. (It does not throw an error because that is done in luaIndexFunction 
in order to get better reported errors)

steve d.

Original issue reported on code.google.com by steve.j....@gmail.com on 11 Jul 2012 at 9:00