[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: calling a function who's name is stored in a lua table
- From: David Given <dg@...>
- Date: Tue, 12 Jan 2010 12:26:59 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/01/10 12:09, Klaus Ripke wrote:
[...].)
>> local name = AtcActions(n)
> I'd even say AtcActions[n]
[...]
>> print(callfunction("2", "word"))
> I'd go so far as to try print(callfunction(2, "word"))
> (there is no magic string-number-conversion for keys).
D'oh. Yes, absolutely right on both counts.
- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "Sufficiently advanced incompetence is indistinguishable from
│ malice." -- Vernon Schryver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktMapIACgkQf9E0noFvlzj11QCeO8Kb2ynsVo4i8xfUetxjEG2M
VvsAniM5SsLUGbu7CoBudg1dHKoTGmqi
=Spkl
-----END PGP SIGNATURE-----