Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41152 Return-Path: <7am.online@gmail.com> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20365 invoked from network); 16 Oct 2008 17:34:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2008 17:34:10 -0000 Authentication-Results: pb1.pair.com header.from=7am.online@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=7am.online@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.235 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: 7am.online@gmail.com X-Host-Fingerprint: 209.85.198.235 rv-out-0506.google.com Received: from [209.85.198.235] ([209.85.198.235:55708] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/19-12818-11B77F84 for ; Thu, 16 Oct 2008 13:34:10 -0400 Received: by rv-out-0506.google.com with SMTP id g37so96730rvb.23 for ; Thu, 16 Oct 2008 10:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=PfDyoDPy4Pidzy/nhf19km5+5dcj0Ly6EF3+ZbptSQU=; b=m9QNQRnA+nbnlaPURAbx72HTnSJ+dVw7DAVBZkS7d0QPUqhpkS6BR4A6J1lugWKV3v IQPUPdgIKV3vBcUf4mu6fpLAXRqOPjVlkstitxCw9fClfpYWOHBhR+mamj4Jk1NDbLQB rEHxgWs5bGZM4nk+pjw7hwRRB8+Tge1AYXm24= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Q9Y0YjeEHxlB3lw9Mdep8NlDb70iDb1H0lXbPvYEGbgbKqMujoOreKOv3gsiqCXEhW X+foqJY5HhOULwfvV1ycavPM5LFwh1G6TFHSiayvlevh8avoMgrGePLQjkwJymcxQ54m uF95QR+YW8wgz5nILjc46Z3wHdFKGrEvHVG48= Received: by 10.141.156.11 with SMTP id i11mr1817457rvo.1.1224178447266; Thu, 16 Oct 2008 10:34:07 -0700 (PDT) Received: by 10.140.140.9 with HTTP; Thu, 16 Oct 2008 10:34:07 -0700 (PDT) Message-ID: <2f931c6f0810161034n6111ec9fi9fb7971bf8e8f052@mail.gmail.com> Date: Fri, 17 Oct 2008 01:34:07 +0800 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: my last attempt at sanity with namespaces From: 7am.online@gmail.com ("Edmund Tam") Hello all, Sorry to post here being an "outsider". I didn't post because I know nothing about the internals, really. However after some incomplete thought I have a not very thorough suggestion about the ambiguity issue mentioned in the RFC wiki. I would like to ask if this is possible. Let me quote the challenge here: // is this class one::step or namespace one::step? one::step::two(); Is is possible that the engine first looks for classes, then namespaces? So "one::step::two();" should always result in: Namespace: one Class: step Static Method: two Now the "ambiguity" is resolved. If we want to really mean namespace "one::step" and function two(), one must explicitly write the following: (one::step)::two(); Yes, parenthesis, just like when we want to write (1 + 2) * 3. So my question is: can parenthesis play a part in namespace resolving? There can be problem, e.g. I don't know if the engine can distinguish it from typecasting without many efforts. But anyway I hope this doesn't sound too stupid :). T >Hi, > >http://wiki.php.net/rfc/namespaceissues > >Read it and discuss. Let's be clear people: the technical problems in >namespaces are limited and solvable. The problems in the political >environment surrounding them may not be. Wouldn't politics be a >stupid-ass reason to remove namespaces? > >Greg