|
|
|
start date: Sun, 19 Aug 2007 08:32:22 -0700,
posted on: microsoft.public.dotnet.languages.vc
back
| Thread Index |
|
1
Cat
|
|
2
David Wilkinson
|
|
3
Cat
|
Multi-level namespace?
In C#, this is legal
namespace MyNamespace.MyApp
{
}
But when I did that in VC++, it didn't compile.
I had to change it to
namespace MyNamespace
{
namespace MyApp
{
}
}
If the level is more than two, it gets really nasty. Why can't I do it
the way I do in C#?
Date:Sun, 19 Aug 2007 08:32:22 -0700
Author:
|
Re: Multi-level namespace?
Cat wrote:
> In C#, this is legal
> namespace MyNamespace.MyApp
> {
> }
>
> But when I did that in VC++, it didn't compile.
> I had to change it to
> namespace MyNamespace
> {
> namespace MyApp
> {
> }
> }
>
> If the level is more than two, it gets really nasty. Why can't I do it
> the way I do in C#?
Cat:
Wrong syntax.
namespace MyNamespace::MyApp
{
}
--
David Wilkinson
Visual C++ MVP
Date:Sun, 19 Aug 2007 12:05:33 -0400
Author:
|
Re: Multi-level namespace?
On Aug 20, 1:05 am, David Wilkinson wrote:
> Cat wrote:
> > In C#, this is legal
> > namespace MyNamespace.MyApp
> > {
> > }
>
> > But when I did that in VC++, it didn't compile.
> > I had to change it to
> > namespace MyNamespace
> > {
> > namespace MyApp
> > {
> > }
> > }
>
> > If the level is more than two, it gets really nasty. Why can't I do it
> > the way I do in C#?
>
> Cat:
>
> Wrong syntax.
>
> namespace MyNamespace::MyApp
> {
>
> }
>
> --
> David Wilkinson
> Visual C++ MVP
Thank you.
Date:Sun, 19 Aug 2007 20:38:33 -0700
Author:
|
|
|