A Bothe wrote:
What's your favorite line of D code?

I like my recent:

c.resFunc = cast(void function(void*))(*cast(void***)proto.resources[origResIdx].init().ptr)[
        Command.Type.ResAcquire == c.type ? 1 : 2
];

Sure, it's 3 lines, but still one statement and if I were downs, that would *be* one line ;D


--
Tomasz Stachowiak
http://h3.team0xf.com/
h3/h3r3tic on #D freenode

Reply via email to