Skip to main content
gamedev.net
🔒 Locked

C# ...

Started by The Reindeer Effect 7 replies 1.4k views
Original Post
The Reindeer Effect
The Reindeer Effect
What does it have to offer that isn''t available in C++?
_______________________________ It''s not reality that''s important, but how you perceive things. A man''s reach should exceed his grasp.
Arild Fines
Arild Fines
A consistent, thought through design?



For those who believe in God, most of the big questions are answered. But for those of us who can''t readily accept the God formula, the big answers don''t remain stone- written. We adjust to new conditions and discoveries. We are pliable. Love need not be a command or faith a dictum. I am my own God. We are here to unlearn the teachings of the church, state, and our educational system. We are here to drink beer. We are here to kill war. We are here to laugh at the odds and live our lives so well that Death will tremble to take us -- Charles Bukowski
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
The Reindeer Effect
The Reindeer Effect
Please explain further than that. I mean, what does this "consistant, thought through design" add to the language? I can code in C++ very easily, regardless of what you may find wrong with the design.



_______________________________
It''s not reality that''s important, but how you perceive things.

A man''s reach should exceed his grasp.
djkno3
djkno3
One thing is type safe methods called properties if you try and send a char to a method that takes an int it will throw an exeception. That is another part of the language it has SEH built into it (Structured Error Handleing? I forget what it means) It is the error handleing that you use with the Try{..} Catch{...} blocks. Every thing in C# is an object kinda like Java even the variables (I don''t think Java has that part) so every base class has basic methods. If you want a better comparison http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscon/html/vclrfComparisonBetweenCCSharp.asp
niyaw
niyaw
quote:
Original post by The Reindeer Effect
I can code in C++ very easily, regardless of what you may find wrong with the design.


i too can code a "hello world" app pretty easily.
sark
sark
quote:
Original post by The Reindeer Effect
What does it have to offer that isn't available in C++?



Reflection. 'Nuff said.

[edited by - sark on December 7, 2002 12:25:17 PM]
MK42
MK42
Reflection is awesome:

I really like the fact that you can build a (C#) DLL (they call it assembly). Then you load it from your C# app and can ask it what classes it contains. Then you can ask the class if it supports a certain interface. If it does, you create an instance of the class, cast it to the interface and use it. Plugins were never simpler (and safer) ... just imagine the possibilities!

-Marco

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.