Namespaces

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Can we not use the following.´??


namespace Vendor::Product


It wont compile with that

Must I always do the following?

namespace Vendor
{
namespace Product
{
}
}

???!!!??
 
.. said:
Hi

Can we not use the following.´??


namespace Vendor::Product
No.

It wont compile with that

Must I always do the following?

namespace Vendor
{
namespace Product
{
}
}

???!!!??


Yes.

Schobi

--
(e-mail address removed) is never read
I'm Schobi at suespammers dot org

"Sometimes compilers are so much more reasonable than people."
Scott Meyers
 
Bugeroo.. Makes refactoring namespaces harder, o well.

Can I use #region or something like regions in C++\CLI?
 
Hi,

Thanks for posting in the community.
Can I use #region or something like regions in C++\CLI?

Do you mean the #region in C#?
If so, there is no corresponding directive in MC++.


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
.. said:
Can I use #region or something like regions in C++\CLI?

It has nothing to do with C++/CLI (which is just the name of the standards
committee), but the Visual C++ compiler will support the following.

#pragma region
#pragma endregion
 
Yeah but that doesnt allow the IDE to collapse those regions which is the
entire point of them.

On a different note, will C++/CLI support partial types like C# in future,
and I would hope they would have Generics also?
 
.. said:
Yeah but that doesnt allow the IDE to collapse those regions which is the
entire point of them.

Actually, it does. That was the entire point of adding them. It's the
Whidbey IDE that will allow collapse and expand.
On a different note, will C++/CLI support partial types like C# in
future, and I would hope they would have Generics also?

The C++/CLI committee has not discussed partial types. The C++ language
design team at Microsoft has. The problem is very different given that C++
has a very different compilation model than C# and Visual Basic. At this
time, partial types will not be supported in C++ for Whidbey.

Generics are included in C++, and are in the language specification that the
C++/CLI committee is working on.
 
------ Build started: Project: FireWire, Configuration: Release Win32 ------

Compiling...
something.cpp
c:\something.h(160) : warning C4068: unknown pragma
c:\something.h(163) : warning C4068: unknown pragma
Linking...



#pragma region doesnt work
 
Hi,

Thanks for your quickly response!

Brandon write:
but the Visual C++ compiler will support the following.

I consulted him with the same problem, he actually means it will be
supported in the Whidbey.


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
meh.


While you are at it, how about fixing those __property constructs..

I just posted the example elsewhere in this forum of why its fugly.
 
Hi,

Thanks for your quickly reply!

About the issue of the __property constructs, I think Brandon will give you
a reply in that thread, if not due to some reason, I will remind him.


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top