Thread: FAQ: What is .NET ?

  1. #16
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    This doesn't sound good. I can see it leading to some very messy source code.

    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.

  2. #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.

  3. #18
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

  4. #19
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    >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)

  5. #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!"

  6. #21
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

  7. #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!"

  8. #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.

  9. #24
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

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