FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Extension Namespaces
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP Extension Namespaces [message #175755] Sun, 23 October 2011 13:57
Philipp Kraus is currently offline  Philipp Kraus
Messages: 14
Registered: December 2010
Karma: 0
Junior Member
Hello,

I would like to create a PHP extension with C++. The basic functional
works fine. My C++ classes are organized within namespaces.
So each C++ class sould be got a equal PHP class. In this case I would
like to translate the C++ namespaces to a PHP
namespace eg:

C++:

namespace myspace {
class myclass {}
}

should be create in PHP:

<?
namespace myspace;
class myclass {}
?>

(How) Can I create a namespace in a extension?

Thanks

Phil
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Json result
Next Topic: Sessions and links
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 09:58:53 GMT 2024

Total time taken to generate the page: 0.01885 seconds