[Issue 13700] Rejected valid conversion from slice to fixed size array

2024-01-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13700

Dennis  changed:

   What|Removed |Added

 CC||turkey...@gmail.com

--- Comment #4 from Dennis  ---
*** Issue 24323 has been marked as a duplicate of this issue. ***

--


[Issue 13700] Rejected valid conversion from slice to fixed size array

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13700

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P4

--


[Issue 13700] Rejected valid conversion from slice to fixed size array

2014-12-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13700

Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
   Hardware|x86 |All
 OS|Windows |All

--- Comment #1 from Kenji Hara k.hara...@gmail.com ---
https://github.com/D-Programming-Language/dmd/pull/4209

--


[Issue 13700] Rejected valid conversion from slice to fixed size array

2014-12-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13700

--- Comment #2 from Kenji Hara k.hara...@gmail.com ---
(In reply to Kenji Hara from comment #1)
 https://github.com/D-Programming-Language/dmd/pull/4209

Handle following slice forms:

arr[e1-b .. e2](length = a)
arr[e1 .. e2+b](length = b)
arr[e1-a .. e2+b]  (length = a + b)
arr[e1+a .. e2+b]  (length = b - a, if a = b)
arr[e1-a .. e2-b]  (length = a - b, if a = b)

Requires:
1. 'e1' and 'e2' are equivalent expression that have no side effects.
2. 'a' and 'b' are (const-folded) constants.

--