|
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]
|