Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Unity 2020.1 uses C# compiler from 2018

Discussion in 'Scripting' started by Kamyker, Sep 8, 2020.

  1. Kamyker

    Kamyker

    Joined:
    May 14, 2013
    Posts:
    1,084
    From https://forum.unity.com/threads/c-compiler-issue.965885/#post-6291284
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,762
    All software has some bugs. Did you have a point or a question?
     
  3. Kamyker

    Kamyker

    Joined:
    May 14, 2013
    Posts:
    1,084
    If you open linked thread as you can see compiler doesn't work completely with C# 7.3.

    Why is it so old?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,762
    No idea.

    Now let's do a thought experiment:

    *DING! You now magically know PRECISELY why it is so old.

    How are you going to behave differently that you would now?
     
  5. Kamyker

    Kamyker

    Joined:
    May 14, 2013
    Posts:
    1,084
  6. Noctys

    Noctys

    Joined:
    Aug 23, 2013
    Posts:
    37
    Each version of Unity is going to stick with the same compiler it was using when it was released. Also, Unity isn't going to change compilers between minor versions - changing compiler versions could introduce new bugs to code that was working just fine before.

    I have to agree with Kurt-Dekker though - does it matter why they are using an older version or for that matter that the version of Unity you were using used an older version? Asking a question like that doesn't help with anything.
     
  7. Kamyker

    Kamyker

    Joined:
    May 14, 2013
    Posts:
    1,084
    This doesn't make sense. There were 2 major Unity releases after 2018 in which compiler could've been upgraded from 2.9 to 2.10. Could introduce new bugs but resolves old bugs.

    Of course it does. What if I need to use something that was fixed in 2.10?
    Have Unity tried upgrading the compiler? Maybe they did and saw many issues/bugs? Maybe they just forgot(or didn't notice or were too lazy to check new bugs)?

    This would help me decide how safe upgrading manually to newer compiler is.