Am Sun, 25 Feb 2018 00:05:44 +0000 schrieb kdevel: > > but gdc (GCC 4.9.4) complains: > > dotbench.d:65:11: Fehler: basic type expected, not foreach > static foreach (s; typenames) { > ^ > dotbench.d:65:11: Fehler: no identifier for declarator _error_ > static foreach (s; typenames) { > ^
Unfortunately, static foreach is not supported in GDC right now. Maybe we'll get a static foreach backport soon (https://dlang.slack.com/ archives/C6LTP6MV1/p1519419332000480 ), otherwise static foreach will only start working once we switch GDC to the D frontend (https:// github.com/D-Programming-GDC/GDC/pull/550 ). -- Johannes