Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36604 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31114 invoked from network); 27 Mar 2008 08:15:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2008 08:15:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=lokrain@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lokrain@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.155 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: lokrain@gmail.com X-Host-Fingerprint: 72.14.220.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:20437] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/10-30240-DA75BE74 for ; Thu, 27 Mar 2008 03:15:42 -0500 Received: by fg-out-1718.google.com with SMTP id 22so4042158fge.23 for ; Thu, 27 Mar 2008 01:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=MlXLvXftFfVpuDqoU+4q49vfHOo5iP4V3a2uSiJg3C8=; b=aQqyrbf8lUfcpiv75uEWUJhAtggnqycApYudBJlTR/TZCtAmh6Wg1qv0HGXcB2wD8Ac9pMZvVkWUFmJIp0Sr/Wj3PAUgeSTWcQaWMfVriWyMoa+MF9VTtaDUPez6OJiqQxrzhzBe4Zjs1NJOuP1rHrLiwIC8i4fluwMbTrvrJiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OE9BoEdqHqNBR8idQNouFp8rChDJuJ1W6Jr6VAEZOUK882Qqi694sXU+by3rEb70oWtQRaYHWTVwNA4I+qqY6lZnrqACjAZYWgf1xk/ca1pM1pxaUG+tMr7I4hQKt4CF/as9Ptf4rI+k8sDSCkY8XicrkPJmwO99xDlkYC/r9rk= Received: by 10.86.95.20 with SMTP id s20mr679256fgb.6.1206605738800; Thu, 27 Mar 2008 01:15:38 -0700 (PDT) Received: by 10.86.2.9 with HTTP; Thu, 27 Mar 2008 01:15:38 -0700 (PDT) Message-ID: <345fd5cd0803270115t672d6adew8623e06c68cea001@mail.gmail.com> Date: Thu, 27 Mar 2008 10:15:38 +0200 To: ceo@l-i-e.com Cc: "Felipe Pena" , "Robin Fernandes" , internals@lists.php.net In-Reply-To: <37381.98.193.37.55.1206582516.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23739_18781861.1206605738804" References: <5a8807d10802050343r43742844we89366ec47b57f4b@mail.gmail.com> <46ccd1ab0803241816k413c7605p2c3fb9139afd8536@mail.gmail.com> <37381.98.193.37.55.1206582516.squirrel@www.l-i-e.com> Subject: Re: [PHP-DEV] Inconsistencies when accessing protected members From: lokrain@gmail.com (Lokrain) ------=_Part_23739_18781861.1206605738804 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Internals, This discussion was very interesting to me so I made some research about all languages OOP. Each time I saw definition of public, protected, private there was an explanation which never mentioned instances, but classes. I certainly thought that Richard is right saying: Surely it shouldn't work at all unless the $foo === $this? I was even amazed that I haven't thought about this ever...and the conclusion of my research is that as, like Stanislav said, this keywords(public, etc) are for classes not for instances... I learned something new today :) Thanks for this discussion. Best Regards, Dimitar Isusov ------=_Part_23739_18781861.1206605738804--