Scope of enum
Adam D Ruppe
destructionator at gmail.com
Sun Jul 11 13:39:06 UTC 2021
On Sunday, 11 July 2021 at 13:21:35 UTC, DLearner wrote:
> Is there a 'D' way of avoiding the issue?
Pass the size as a parameter to the thing instead of trying to
combine things. like
mixin template Thing(size_t size) {
ubyte[size] pool;
}
and where you want it like
mixin Thing!(100);
and somewher eelse
mixin Thing!(500);
and they're separate variables with different sizes that you can
use.
idk what your thing needs in context though
More information about the Digitalmars-d-learn
mailing list