Re: [RFC] Lazy Objects

From: Date: Thu, 25 Jul 2024 15:40:38 +0000
Subject: Re: [RFC] Lazy Objects
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Tim,

On Thu, Jul 25, 2024 at 4:47 PM Tim Düsterhus <[email protected]> wrote:
> I'm seeing there are some more changes and not just to the cloning
> section. I've went through the entire RFC once again and here are my
> (hopefully final) five remarks. They are only about textual
> clarification of some behaviors, I don't have any further semantic concerns.

Thank you! We have updated the RFC accordingly.

> 5. In the explanation of
> "ReflectionClass::markLazyObjectAsInitialized()", it says:
>
> > Its behavior is the same as described for Ghost Objects in the
> > Initialization Sequence section, except that the initializer is not
> > called.
> >
>
> This means that calling markLazyObjectAsInitialized() on a lazy proxy
> turns it into a regular object of the proxy class, as if
> newInstanceWithoutConstructor() was used, right?

Yes, except for the value of properties that were already initialized.

Best Regards,
Arnaud


Thread (95 messages)

« previous php.internals (#124589) next »