digitalmars.D - Wrong example in 2.066 release notes
- H. S. Teoh via Digitalmars-d (9/9) Aug 18 2014 The code example given in the 2.066 release notes for multi-dimensional
- Jonathan M Davis (4/13) Aug 18 2014 Feel free to create a PR to fix it... :)
The code example given in the 2.066 release notes for multi-dimensional slicing is wrong; the argument to opDollar is NOT intended to represent the length of the n'th subarray! Rather, it's supposed to represent the length of the multidimensional array along the n'th axis. http://dlang.org/changelog.html?2.066#array_and_aa_changes :-( T -- Try to keep an open mind, but not so open your brain falls out. -- theboz
Aug 18 2014
On Monday, 18 August 2014 at 21:26:47 UTC, H. S. Teoh via Digitalmars-d wrote:The code example given in the 2.066 release notes for multi-dimensional slicing is wrong; the argument to opDollar is NOT intended to represent the length of the n'th subarray! Rather, it's supposed to represent the length of the multidimensional array along the n'th axis. http://dlang.org/changelog.html?2.066#array_and_aa_changes :-(Feel free to create a PR to fix it... :) - Jonathan M Davis
Aug 18 2014