Am 23.09.2013 16:06 schrieb "Joe Watkins" <krak...@php.net>: > > On 09/23/2013 02:43 PM, Lars Strojny wrote: >> >> what about serialization for those classes? > > Same as any other object; what you are creating is normal classes without a (declared) name, nothing about the objects functionality has differs from an object of a named class.
What about UNserialize then? Will you extend the serialized format to include the full definition of the anonymous class, so that it can be reinstated at unserialization time? If not, what will be the class (and baseclass and interfaces) of the unserialized formerly-anonymous objects? best regards Patrick