Can't call Sleep() from withing _get() metamethod
Posted: 07 Feb 2010 23:15
Hi all,
I have found that I am unable to call AIController.Sleep() from within the _get() metamethod of a class. Is this expected behaviour?
The following snippet should demonstrate this (tested in r19055)
I cant see any reason why this would be forbidden, unless I'm missing something. Please tell me this is a bug, that you can fix before 1.0 is released!
Please please please!
As for why I want this, I'm trying to create a dynamic Proxy class for a little bit of AOP, to streamline my codebase a little bit.
Thanks very much
I have found that I am unable to call AIController.Sleep() from within the _get() metamethod of a class. Is this expected behaviour?
The following snippet should demonstrate this (tested in r19055)
Code: Select all
class foo {
function _get(x) {
::AIController.Sleep(1)
}
}
foo().bar

As for why I want this, I'm trying to create a dynamic Proxy class for a little bit of AOP, to streamline my codebase a little bit.
Thanks very much