tag:blogger.com,1999:blog-2458417257543687994.post6099906112596278547..comments2024-01-26T11:22:48.245-07:00Comments on Loyc, etc.: New features the .NET framework should haveQwertiehttp://www.blogger.com/profile/04595705428290721343noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2458417257543687994.post-56759518003554410282015-12-23T03:33:51.306-07:002015-12-23T03:33:51.306-07:00This comment has been removed by a blog administrator.navyahttps://www.blogger.com/profile/09650347706574609617noreply@blogger.comtag:blogger.com,1999:blog-2458417257543687994.post-61953410807304592842012-01-21T12:34:46.185-07:002012-01-21T12:34:46.185-07:00Hmm, I guess you are saying that you would like th...Hmm, I guess you are saying that you would like the number "4" to be a part of the data type like in C. But surely situations where you want a variable-sized array are far more common than situations where you want a fixed-sized array.<br /><br />My post already suggests a fixed-sized array feature, but it's intended more as an optimization hint than as a first-class data type.Qwertiehttps://www.blogger.com/profile/04595705428290721343noreply@blogger.comtag:blogger.com,1999:blog-2458417257543687994.post-78643930617548037792011-07-09T12:00:23.525-06:002011-07-09T12:00:23.525-06:00I honestly do not know what you are talking about....I honestly do not know what you are talking about.Qwertiehttps://www.blogger.com/profile/04595705428290721343noreply@blogger.comtag:blogger.com,1999:blog-2458417257543687994.post-37371109828490984412011-07-09T09:31:18.435-06:002011-07-09T09:31:18.435-06:00You've written some great features, but I thin...You've written some great features, but I thinking about fixed-size arrays and slices a little differetly:<br /><br />I would call them range, and its type would be a fixed array. e.g. 0..10 would be int[11] (if the length is specified then its a fixed-size arrays). And when you use them as indices it would same as yours. But you would be also able to do this:<br /><br />int[4] NewArray = Array[[0, 2, 1, 3]]<br /><br />And Array could be int[], int[4], int[5], etc. It does the same. The changing the order of an array would be like this:<br /><br />Array[0 .. Array.Length - 1] = Array[Array.Legth - 1 .. 0]<br />Array = Array[Array.Legth - 1 .. 0]<br /><br />But If you would use the latter it would allocates a new array.Kocsis Dávidhttps://www.blogger.com/profile/12802182134264849256noreply@blogger.com