mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #02965
Re: [Bug 1164807] [NEW] functions nested in tables with callbacks
Wait, hang on. Why did you need to do this? There's no reason it
shouldnt've worked already, and doing a simple test like this:
ttable = {
techo = function()
echo("hi")
end
}
tempTimer(0.5, "ttable:techo()")
Shows that it does work.
On Fri, Apr 5, 2013 at 12:47 PM, Chris <1164807@xxxxxxxxxxxxxxxxxx> wrote:
> Public bug reported:
>
> For functions like tempTimer, you can have function callbacks but not
> callbacks which are in namespaces (tables). So this won't work:
> tempTimer(0.5, "ttable:techo()").
>
> This commit makes this so. I'd like it to be tested, then I can port
> the code to the other methods which can benefit from this as well.
>
>
> https://github.com/Chris7/Mudlet2/commit/0d636cc74bde1c1579c2685fecadf8f08b083af4
>
> ** Affects: mudlet
> Importance: Medium
> Status: Fix Committed
>
> --
> You received this bug notification because you are a member of Mudlet
> Makers, which is subscribed to Mudlet.
> https://bugs.launchpad.net/bugs/1164807
>
> Title:
> functions nested in tables with callbacks
>
> Status in Mudlet the MUD client:
> Fix Committed
>
> Bug description:
> For functions like tempTimer, you can have function callbacks but not
> callbacks which are in namespaces (tables). So this won't work:
> tempTimer(0.5, "ttable:techo()").
>
> This commit makes this so. I'd like it to be tested, then I can port
> the code to the other methods which can benefit from this as well.
>
>
> https://github.com/Chris7/Mudlet2/commit/0d636cc74bde1c1579c2685fecadf8f08b083af4
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mudlet/+bug/1164807/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~mudlet-makers
> Post to : mudlet-makers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mudlet-makers
> More help : https://help.launchpad.net/ListHelp
>
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1164807
Title:
functions nested in tables with callbacks
Status in Mudlet the MUD client:
Fix Committed
Bug description:
For functions like tempTimer, you can have function callbacks but not callbacks which are in namespaces (tables). So this won't work:
tempTimer(0.5, "ttable:techo()").
This commit makes this so. I'd like it to be tested, then I can port
the code to the other methods which can benefit from this as well.
https://github.com/Chris7/Mudlet2/commit/0d636cc74bde1c1579c2685fecadf8f08b083af4
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1164807/+subscriptions
References