www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Wrong example in 2.066 release notes

reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
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
parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
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