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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to