auto a1 = new int[100]; auto t3 = a1.sliced(3,4,5); pragma(msg,typeof(t3)); //This prints Slice!(3u, int*) Slice!(3u, int*) t4 = a1.sliced(3,4,5); // and this works ok
Re: use of typeof to determine auto type with ndslice examples
Jay Norwood via Digitalmars-d-learn Sun, 20 Dec 2015 22:11:38 -0800
So, the extra confusion of the typeof(iota) Result return goes
away when slicing arrays.
- use of typeof to determine auto type w... Jay Norwood via Digitalmars-d-learn
- Re: use of typeof to determine au... Jay Norwood via Digitalmars-d-learn
- Re: use of typeof to determin... drug via Digitalmars-d-learn
- Re: use of typeof to dete... Jay Norwood via Digitalmars-d-learn
- Re: use of typeof to ... Jay Norwood via Digitalmars-d-learn
- Re: use of typeof to determine au... lobo via Digitalmars-d-learn