Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 02, 2017 [Issue 17364] Difference between slicing a slice and a reference to a slice | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17364 anonymous4 <dfj1esp02@sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |spec --- Comment #1 from anonymous4 <dfj1esp02@sneakemail.com> --- I'd say the array should be loaded before evaluation of slice arguments. For example you can't resolve length before loading the array. So asserts should be assert(r1 == [ 1 ]); assert(r2 == [ 1 ]); How does it work with function pointers? -- |
May 02, 2017 [Issue 17364] Difference between slicing a slice and a reference to a slice | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17364 --- Comment #2 from kinke@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. -- |
May 03, 2017 [Issue 17364] Difference between slicing a slice and a reference to a slice | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17364 --- Comment #3 from anonymous4 <dfj1esp02@sneakemail.com> --- (In reply to kinke from comment #2) > but *when* the loads happen is clearly crucial That's the loading I talk about. -- |
May 03, 2017 [Issue 17364] Difference between slicing a slice and a reference to a slice | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17364 anonymous4 <dfj1esp02@sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=17363 -- |
December 17, 2022 [Issue 17364] Difference between slicing a slice and a reference to a slice | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17364 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
Copyright © 1999-2021 by the D Language Foundation