Subtracts two objects from another
-
op_Subtraction(other)
table = {
a = 10,
op_Subtraction = function(other)
{
r = {
a = table.a - other.a
}
return r
}
}
o = {
a = 9,
op_Subtraction = function(other)
{
r = {
a = o.a - other.a
}
return r
}
}
b1 = table - other //Returns new table with a = 1