[Issue 17364] Difference between slicing a slice and a reference to a slice
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 2 10:49:03 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17364
--- Comment #2 from kinke at gmx.net ---
> For example you can't resolve length before loading the array.
Not sure what you mean by 'loading the array'. The base expression evaluates to
a slice, a pointer+length pair, in these 2 cases either to a variable directly
or a reference to it, i.e., in both cases an lvalue representing a slice in
memory. Length/pointer may then be loaded independently from the slice in
memory, but *when* the loads happen is clearly crucial and currently
inconistent.
--
More information about the Digitalmars-d-bugs
mailing list