Re: Re: PHP 5.1 (Or How to break tousands of apps out there)

From: Date: Sat, 26 Nov 2005 20:13:56 +0000
Subject: Re: Re: PHP 5.1 (Or How to break tousands of apps out there)
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-20578@lists.php.net to get a copy of this message
BTW, "::" is out the question (yes, I did try it). It created ambiguity in the case of calling a function in a namespace and calling a method of a class in a namespace: echo a::b::c(); The above can either mean "call function c in namespace b under namespace a" or "call static method c of class b under namespace a". Since this cannot be determined, "::" cannot be used. Regards, Jessie Jessie Hernandez wrote:
All, What would you say if I managed to solve this problem, but that the solution entailed changing the namespace separator to ":::"? The code below works fine locally. Is ":::" unacceptable? Personally, I think anything is better than using "\", and ":::" is not bad for me. If not, which character sequence do all of you prefer? <?php namespace ns {
    const CON1 = 'a';
    const CON2 = 'b';
} echo true ?ns:::CON1:ns:::CON2; ?> Regards, Jessie


« previous php.internals (#20578) next »