[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: newbee question...
- From: Alex Sandro Queiroz e Silva <asandro@...>
- Date: Sat, 21 Oct 2000 19:39:26 -0300 (GRNLNDST)
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 |
+----------------------------------------------------------------------------+