Slice allocation after appending
Ali Çehreli
acehreli at yahoo.com
Wed Dec 23 16:46:41 UTC 2020
On 12/23/20 8:14 AM, frame wrote:
> That implementation
> can become very handy for some situations but for this simple case
>
> foreach (arr; [a, b]) { .. }
>
> would also work.
Absolutely.
> The difference is that the foreach loop is happen at
> runtime and will not compiled as multiple lines.
AliasSeq also allowed me to print the names of the local array variables
'a' and 'b'.
Ali
More information about the Digitalmars-d-learn
mailing list