Simon said:
But the following MC++ code compiles without any error:
#using <mscorlib.dll>
void F1([System::Runtime::InteropServices::OutAttribute] int* pi)
{} void F2(int* pi) {}
int main()
{
int i, j;
F1(&i);
F2(&j);
}
So, supposedly MC++ has no facility that is semantically equivelant to
C#'s out/ref?
Only the compiler does not ENFORCE this. But this is common to all C++
compilers that you can do more or less if you want...
C++ also does not restrict casting... or use of void-pointers...
If you want a type-safe and "language-safe" language you must use C# (or
any other langugate that supports what you want...)
Recapitulating we can say: C++ needs a higher learning curve that C#, and
you can do musch more "bad things" than with C#.
--
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/