Lexicographical object comparison by selected members of a struct
Ali Çehreli
acehreli at yahoo.com
Sat Aug 21 13:45:59 UTC 2021
On 8/21/21 1:31 AM, Tejas wrote:
> I was more impressed that you found that hack in the first place
I can't take credit. :) 'static foreach' had that difference since its
inception. The spec says "If a new scope is desired for each expansion,
use another set of braces:"
https://dlang.org/spec/version.html#staticforeach
Ali
More information about the Digitalmars-d-learn
mailing list