You are here: Re: unset($this) or maybe unset(&$this) « PHP Programming Language « IT news, forums, messages
Re: unset($this) or maybe unset(&$this)

Posted by Oli Filth on 02/23/06 02:50

Tony Marston said the following on 21/02/2006 09:46:
> Don't be silly. The execution path is sequential, so after a command which
> does not involve a jump is executed the next instruction to be executed will
> be the very next instruction in the same object method. If you have just
> erased the object that contains the next instruction what do you think will
> happen? How is the PHP processor supposed to know where to go?
>

I dunno about PHP, but the equivalent is perfectly possible in C++, i.e.
you can call delete on this (assuming it's a heap-based object).

The object and its method code are not one and the same thing. Deleting
an object doesn't mean that the code disappears...

However, like I said, I don't know what PHP allows you to do or not.


--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация