struct Color_t {
static if(__ctfe){
import std.bitmanip:bitfields;
}
mixin(bitfields!(
uint, "R", 8,
uint, "G", 8,
uint, "B", 8,
uint, "A", 8));
}
How to import for mixin contents only.
Taylor Hillegeist via Digitalmars-d-learn Wed, 09 Mar 2016 20:11:30 -0800
So i want bitfields for just a little bit. but i dont want its
dependencies. How is it done. I have tried this. but it doesnt
seem to work on gdc. :(
- How to import for mixin contents... Taylor Hillegeist via Digitalmars-d-learn
- Re: How to import for mixin... Mike Parker via Digitalmars-d-learn
- Re: How to import for m... Taylor Hillegeist via Digitalmars-d-learn
- Re: How to import for m... Taylor Hillegeist via Digitalmars-d-learn
- Re: How to import f... Andrea Fontana via Digitalmars-d-learn
- Re: How to impo... Taylor Hillegeist via Digitalmars-d-learn
- Re: How to... Taylor Hillegeist via Digitalmars-d-learn
