On Sunday, 25 February 2018 at 01:19:02 UTC, Seb wrote:
On Sunday, 25 February 2018 at 00:42:20 UTC, Seb wrote:
On Sunday, 25 February 2018 at 00:36:16 UTC, kdevel wrote:
[...]
Are you looking for something like this?
---
static if (__traits(compiles, () { static foreach (i; [0]){}
}))
On Sunday, 25 February 2018 at 00:42:20 UTC, Seb wrote:
On Sunday, 25 February 2018 at 00:36:16 UTC, kdevel wrote:
[...]
Are you looking for something like this?
---
static if (__traits(compiles, () { static foreach (i; [0]){} }))
version = supportsStaticForeach;
void main()
{
On Sunday, February 25, 2018 00:36:16 kdevel via Digitalmars-d-learn wrote:
> A code fragment using static foreach
>
> https://forum.dlang.org/thread/jiefcxwqbjzqnmtaz...@forum.dlang.org#post-b
> eruryblsptnunsowjph:40forum.dlang.org
>
> does not compile with the current GDC (GCC 4.9.4 and 5.5.0).
On Sunday, 25 February 2018 at 00:36:16 UTC, kdevel wrote:
A code fragment using static foreach
https://forum.dlang.org/thread/jiefcxwqbjzqnmtaz...@forum.dlang.org#post-beruryblsptnunsowjph:40forum.dlang.org
does not compile with the current GDC (GCC 4.9.4 and 5.5.0). I
tried to encapsulate