How to translate this C macro to D mixin/template mixin?

Ali Çehreli acehreli at yahoo.com
Tue Jun 15 12:38:15 UTC 2021


On 6/15/21 5:18 AM, VitaliiY wrote:

 > STOREBITS and ADDBITS use variables defined in STARTDATA

If possible in your use case, I would put those variables in a struct 
type and make add() a member function. However, a similar type already 
exists as std.bitmanip.BitArray.

Ali



More information about the Digitalmars-d-learn mailing list