Static foreach bug?
Neia Neutuladh
neia at ikeran.org
Mon Sep 3 06:39:17 UTC 2018
On Monday, 3 September 2018 at 04:43:30 UTC, bauss wrote:
> On Sunday, 2 September 2018 at 20:01:08 UTC, Neia Neutuladh
> wrote:
>> On Sunday, 2 September 2018 at 19:42:20 UTC, bauss wrote:
>>> Woud be so much more maintainable if I could have each
>>> statement into a variable that could be maintained properly.
>>
>> You could extract the body of the static foreach into a
>> [template] function.
>
> I'm aware of that, but it's an unnecessary work around for
> something as trivial as the alternative would have been.
You would need to mark symbols as scoped to the static foreach
body, or else as exported from a scope to an outer scope. So it's
not exactly trivial.
More information about the Digitalmars-d
mailing list