[ create a new paste ] login | about

Link: http://codepad.org/8HnF62s2    [ raw code | output | fork ]

D, pasted on Dec 29:
1
2
3
4
5
6
7
8
9
struct RGB {
   ubyte red, green, blue;
}

const RGB[2] PALETTE = [RGB(0x00, 0x00, 0x00),  RGB(0x01, 0x01, 0x01)];

void main() {
    printf("%d\n", PALETTE[0].red);
}


Output:
1
0


Create a new paste based on this one


Comments: