gettable hook
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: gettable hook
- From: Steve Dekorte <steve@...>
- Date: 2000年5月26日 13:12:26 -0700
If I place a hook on "index" for strings like this:
function gettableHook(object, field)
print("called gettableHook")
end
settagmethod( tag(""), "gettable", gettableHook)
and then do:
a = "foo"
a.test
The gettableHook is called properly.
But if I do:
"foo".test
I get a syntax error.
Is there any way to get both to work the same?
Steve