On Tuesday, 1 January 2019 at 21:14:09 UTC, Michelle Long wrote:
auto foo(S s) { static foreach(k, p; [s, this]) for(int i = 0; i < p.length; i++) ... }
try static foreach(.......) {{ stuff }} The double {{ and double }} are intentional.
Adam D. Ruppe via Digitalmars-d-learn Tue, 01 Jan 2019 13:20:40 -0800
On Tuesday, 1 January 2019 at 21:14:09 UTC, Michelle Long wrote:
auto foo(S s) { static foreach(k, p; [s, this]) for(int i = 0; i < p.length; i++) ... }
try static foreach(.......) {{ stuff }} The double {{ and double }} are intentional.