lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, 20 Oct 2000, David Jeske wrote:

> ** C++
> 
> void MyObject:my_method(void) {
>   this = NULL;  // this is just an implied local variable
> }

Hallo,
	Actually it would change the object because "this" is a pointer, a
concept that doesn't exist in Lua neither in Python. But C++ is smart
enough to not allow assigments to "this".

  --Alex	asandro@lcg.dc.ufc.br		Lab. de Computação Gráfica/UFC
+----------------------------------------------------------------------------+
|"Minha força vem da solidão. Não tenho medo das chuvas tempestuosas nem das |
| grandes ventanias soltas, pois eu também sou o escuro da noite."	     |
|	- Clarice Lispector						     |
+----------------------------------------------------------------------------+