Steve Teale wrote:
I just find this scary, because although it says at the top of the page "most of this will be familiar to C/C++ programmers" this little fact means I have to go through all of the familiar constructs with a fine tooth comb.
It shouldn't be scary, because the idea is if some common C struct is not acceptable in D, one gets a decent compiler error message. A scary thing would be if the code was silently accepted but did something different.
Also, nobody is answering the question. I can work out the alternatives, but I'd just prefer it if existing code worked. I used to use the idiom I quote all the time.
I'm not understanding your question, then.
