-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
[email protected] wrote:
> At 27.11.2009 14:34:29 Uli Schlachter <[email protected]> wrote:
>> I think it would be best to keep the "awesome core" objects as userdata the
>> way
>> they are. You can just write your own class inheritance model in lua and use
>> your own tables for most of the stuff, can't you?
>
> Yes, what I meant is that the core would use userdata, which would be
> accessible
> from Lua, and the Lua classes would be tables that would inherit from those.
>
>> AFAIK the only problem with metatables were that a wibox' .widgets table lost
>> the metatables of its members. Since there won't be anything like this in
>> awesome 4, I think metatables should work as expected.
>
> Yeah... just that with userdata, you can't modify the metatable from Lua
> (maybe
> methods can be written for that?).
Work around it and wrap the userdata up in an empty table?
(/me hides in a corner)
Uli
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
-- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBCAAGBQJLD/p6AAoJECLkKOvLj8sGEnIIAK5vRUXkkyyZOJmZcejhfOsN
WXpPoOYpiDCjDWmbun4hYiTHl6dUbXhTeQbQctcuE7kRGmUFwM59KWnmvKz8ekj7
9ydg3ML1cyhcqz8zdMztx/aZHfBfZKi8RHq0q2wTHJpUS9XgdZX7d5Tuqnm7d/cG
m2Mrd/WvvWwpX81sU/L3XgpFvbqcs/Z8kXrGWJnb0vpXYeK93g+JKNs7/uUbnNmV
ccWKwdaTCP2E/fMFgkSN8taAd0Lz6tYjZKbTn9BhJIUuflyHvONuXKB7VdkAk++L
+BHL/xCkI7RSUuAyg1jmTGA/V8EBN+SnxJ3XfH3wN+6vrLi3KBnucVYG5HdlT+M=
=Bj/+
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].