Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3286 invoked from network); 19 Jan 2015 10:05:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2015 10:05:06 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:19264] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/C6-64889-1D6DCB45 for ; Mon, 19 Jan 2015 05:05:05 -0500 Message-ID: <67.C6.64889.1D6DCB45@pb1.pair.com> To: internals@lists.php.net References: <003201d0326b$6fd27f60$4f777e20$@tekwire.net><23490588-0131-4B0F-A7AA-C9C8C766626C@ajf.me> In-Reply-To: Date: Mon, 19 Jan 2015 09:54:22 -0000 Lines: 2 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-Posted-By: 80.177.120.119 Subject: Re: [PHP-DEV] Class constructor behaviour From: TonyMarston@hotmail.com ("Tony Marston") "Rowan Collins" wrote in message news:CALKiJKqpk7X0yn0d_PWOKU1S7m156dF7865aLCP5dLF=q39uWg@mail.gmail.com... > >On 18 January 2015 at 11:28, Tony Marston wrote: > >> "Andrea Faulds" wrote in message news:23490588-0131-4B0F-A7AA- >> C9C8C766626C@ajf.me... >> <> >> >> You are forgetting one minor thing - an object may be instantiated from a >> piece of procedural code. In fact the very first object can only be >> instantiated from procedural code. > > >I'm not sure what you mean by the second sentence here; which is the "very >first object"? Before you can use an object you must instantiate it using "$object = new ". For the very first object this line can only be performed in procedural code. It cannot be perform within the first object as the first object must be instantiated externally. -- Tony Marston