[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Metatables, C and Script...
- From: Fernando P. García <fernando@...>
- Date: Sun, 25 Oct 2009 17:12:45 -0500
All
'obj:method' calls must pass 'obj' as the first parameter to function,
no metter what type 'obj' is. So it's extremely wierd if it doesn't. I
haven't tried this on objects, but it works well with strings and
numbers. Maybe I couldn't understand what your problem is.
I'm curious about why following does not works:
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> t={'a','a'}
> print(t:concat())
stdin:1: attempt to call method 'concat' (a nil value)
stack traceback:
stdin:1: in main chunk
[C]: ?
>
Blessings!
--
Fernando P. García, http://www.develcuy.com
Developer - Analista de Sistemas
+51 1 9 8991 7871, Calle Santa Catalina Ancha #377, Cusco -Perú
** Antes de imprimir este mensaje piensa en tu compromiso con el medio ambiente, protegerlo depende de tí.
- References:
- comment error about OP_VARARG in lopcodes.h, VirusCamp
- Re: comment error about OP_VARARG in lopcodes.h, VirusCamp
- Re: comment error about OP_VARARG in lopcodes.h, KHMan
- Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., Luiz Henrique de Figueiredo
- Re: Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., GrayFace
- Re: Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., GrayFace