Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12636 invoked by uid 1010); 12 Dec 2007 16:39:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12621 invoked from network); 12 Dec 2007 16:39:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2007 16:39:44 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:49942] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/19-53174-FCE00674 for ; Wed, 12 Dec 2007 11:39:43 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 89812C1021A; Wed, 12 Dec 2007 09:39:40 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-15-179.neb.res.rr.com [76.84.15.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 33861C10218; Wed, 12 Dec 2007 09:39:40 -0700 (MST) Message-ID: <47600ECD.8010603@chiaraquartet.net> Date: Wed, 12 Dec 2007 10:39:41 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: nrixham@gmail.com CC: internals@lists.php.net References: <32.2E.38526.E96DF574@pb1.pair.com> In-Reply-To: <32.2E.38526.E96DF574@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: Namespaces Extends? From: greg@chiaraquartet.net (Gregory Beaver) Nathan Rixham wrote: > Hate to bring this one up; I'll be brief! > > for instance smarty get's upgraded and has it's own namespace, I have a > class which extends it, soon to be in my applications namespace which > implements an interface in my interfaces namespace.. how does one extend > a class in another namespace and indeed implement? > > namespace application::handlers; > { > class class_name extends ::b::class_in_other_namespace implements > ::c::iTemplate{ > public func... > } > } > > or would we.. > > namespace application::handlers; > { > use b::class_in_other_namespace as other_class; > use c::interface_in_other_namespace as other_interface; > class class_name extends other_class implements other_interface { > public func... > } > } > > or..? Either one is fine. Greg