I am trying to get a class to destroy itself, calling delete obj looks too unnatural, amidst all OO code. Could someone explain why the following doesn't work? The following code doesn't work, is there another way to achieve this? Also, class A { function destroy() { delete this; // doesn't delete itself } }
var a = new A(); delete a; // delete works here --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders