On 05/14/2017 02:02 PM, Eugene Wissner wrote:
void main() { ubyte[] arr = [ 1, 2, 3, 4, 5 ];assert(arr == [ 1, 2, 3, 4, 5 ]); } Both, assignment and comparison, allocate.
Sure, but Nicholas said 1D arrays behave different from 2D arrays.
ag0aep6g via Digitalmars-d-learn Sun, 14 May 2017 05:11:19 -0700
On 05/14/2017 02:02 PM, Eugene Wissner wrote:
void main() { ubyte[] arr = [ 1, 2, 3, 4, 5 ];assert(arr == [ 1, 2, 3, 4, 5 ]); } Both, assignment and comparison, allocate.
Sure, but Nicholas said 1D arrays behave different from 2D arrays.