locked
Please dont do this to me: UINT array indexes, make it back to INT, because...

    General discussion

  • Because:

    1) Why would anybudy need count of array elements greater than INT ? (half UINT), thats rediculous.

    2) I want my "backward for" with i--

    3) I also find negative index values useful for catching "Numeric circular overflow" bugs.

    4) I love my "Negative BIT" for various purposes, INVALID_INDEX = -1 etc...

    5) And also i just love INT type and hate UINT type.

    or may be its just a panic, i dont know, but i really feel UINT aversion.





    • Edited by NewbTom Tuesday, May 29, 2012 12:52 PM
    Tuesday, May 29, 2012 12:32 PM

All replies

  • You can use uint32, see this http://msdn.microsoft.com/en-us/library/windows/apps/br212455.aspx

    NEU_ShieldEdge

    Wednesday, May 30, 2012 7:24 AM
  • lol i know i can use whatever i want uint32 or UINT or unsigned int - who cares ? topic is not about that.

    i DON'T want to use uint32 AT ALL ! i want only use int32 everywhere:

    int count;

    int index;

    int length;

    ....

    • Edited by NewbTom Wednesday, May 30, 2012 9:07 AM
    Wednesday, May 30, 2012 9:06 AM
  • Now i have to convert UINT to INT everywhere:

    1) for(int i = (int)WinRTClass.Count - 1; i >= 0; i--)

    2) for(int i = 0; i < (int)WinRTClass.Count; i++)

    well THANK you very much!

    Sunday, June 17, 2012 8:03 AM
  • Up...
    Friday, September 21, 2012 3:20 AM