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

Reply via email to