Re: [RFC] Add Directive to Make All Namespaced Function Calls Global
> My thought was that it would have some clean and simple syntax, like:
>
> namespace foo using global functions;
> class MyClass{
>
> }
>
> When the parser hits that token, it just sets a flag and acts like
> every unqualified classname has a backslash in front of it.
>
> For everyone else:
>
> namespace foo;
> class MyClass{
>
> }
>
> ...would still work exactly the same as it does now. And would keep
> BC.
Edit: Meant to say "function name" not "class name", sorry.
Thread (8 messages)