C Board  

Go Back   C Board > General Programming Boards > FAQ Board

 
 
LinkBack Thread Tools Display Modes
Old 02-10-2002, 01:02 PM   #16
Registered User
 
Join Date: Jan 2002
Location: Cardiff
Posts: 2,219
This doesn't sound good. I can see it leading to some very messy source code.

Quote:
Originally posted by Sorensen
>.NET is a group of objects which fits into any language that supports objects? what makes c# different than c++.NET?

No, each language is compiled into the immediate language. In order to do this the language must have certain properties. Managed C++ and C# are two different languages that will both compile to MSIL, but when they are actually compiled into native exe's the compiler doesn't care which language was used to generate the MSIL.

Therefore, you can mix and match the different languages in a project, and as the final exe isn't compiled until it's on the host machine it can take advantage of things like specialised processor instructions that may vary from one PC to another. In theory the code could produce a different exe if it was run on a Pentium II rather than a Pentium IV.
Brian is offline  
Old 02-10-2002, 01:10 PM   #17
S­énior Member
 
Join Date: Jan 2002
Posts: 982
>I can see it leading to some very messy source code.

It wouldn't make any difference to mine .

You don't mix languages in the same file. Some people write programs that are larger than this.
Sorensen is offline  
Old 02-10-2002, 01:14 PM   #18
the hat of redundancy hat
 
nvoigt's Avatar
 
Join Date: Aug 2001
Location: Hannover, Germany
Posts: 2,754
Quote:
This doesn't sound good. I can see it leading to some very messy source code.
How that ? You can only have one language per sourcefile. If you can write messy code in this language, then there's nothing you can do against it. You have to hope for the wisdom of the programmer.
__________________
hth
-nv

She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

When in doubt, read the FAQ.
Then ask a smart question.
nvoigt is offline  
Old 02-11-2002, 08:20 AM   #19
Mayor of Awesometown
 
Govtcheez's Avatar
 
Join Date: Aug 2001
Location: MI
Posts: 8,826
>what is .NET and why is it important?

It gets me out of work for a day to go to the rah-rah launch event (I don't know why, but I'm really psyched for that)
__________________
-Govtcheez
govtcheez03@hotmail.com
Govtcheez is offline  
Old 02-11-2002, 08:57 AM   #20
.
 
Join Date: Aug 2001
Posts: 598
nvoigt, you don't care if I copy your post to fd net forum faq thread do you? I'll give you creadit if you want it.
__________________
To Err Is To Be Human. To Game Is Divine!"
gamegod3001 is offline  
Old 02-11-2002, 10:45 AM   #21
the hat of redundancy hat
 
nvoigt's Avatar
 
Join Date: Aug 2001
Location: Hannover, Germany
Posts: 2,754
No prob. While you are at it, could you have a look and mail me my password, or PM it here ? I lost it, and the recovery routine of fd didn't work. I mailed Rick and Fordy, but my mails seem to have been lost over time
__________________
hth
-nv

She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

When in doubt, read the FAQ.
Then ask a smart question.
nvoigt is offline  
Old 02-11-2002, 02:39 PM   #22
.
 
Join Date: Aug 2001
Posts: 598
I don't have the power to get your password, (or I can't figure out how to) but I'll post a thread in the Mod forum.

Anyways how long ago did you try to recover your password? If it was a while ago it might have been fixed.
__________________
To Err Is To Be Human. To Game Is Divine!"
gamegod3001 is offline  
Old 02-14-2002, 09:16 PM   #23
Banned
 
Troll_King's Avatar
 
Join Date: Oct 2001
Posts: 1,784
I heard that the IL code was the same for every language.
Troll_King is offline  
Old 02-15-2002, 01:15 AM   #24
the hat of redundancy hat
 
nvoigt's Avatar
 
Join Date: Aug 2001
Location: Hannover, Germany
Posts: 2,754
Thats not 100% true, due to differences in the languages.

Imagine a while loop incrementing the counter until some condition is met. C++ produces the logical loop code. If the counter overflows, noone cares. In VB, overflow checking is performed on every variable. So VB will produce the same code like C++, with an additional overflow check. In MSIL, that means that the C++ loop uses a command like INC while in VB, it's something like INC.ovf. This is because different languages handle same constructs in a different way.
Generally, you are right. If you have something that is handled the same way in each language, then no matter what syntax, it produces the same MSIL code.
__________________
hth
-nv

She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

When in doubt, read the FAQ.
Then ask a smart question.
nvoigt is offline  
 

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiki FAQ dwks General Discussions 192 04-29-2008 01:17 PM
migrate from .Net 2.0 to .Net 3.0 George2 C# Programming 3 07-25-2007 04:07 AM
Some .NET Distribution Stats nickname_changed C# Programming 2 05-14-2005 03:41 AM
.net ygfperson A Brief History of Cprogramming.com 18 02-15-2002 01:15 AM
Visual J# mfc2themax A Brief History of Cprogramming.com 0 10-08-2001 02:41 PM


All times are GMT -6. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22