On Fri, 2009-11-06 at 14:42 +0000, Brian Gough wrote: > > Ok, I have read the paper now. I do think the practice of casting > described there is rather dated. When people had no viable > alternative to C, they had to resort to such tricks. It is not > something that should be encouraged today -- programs should either be > written safely, following the rules of type-checking in C, or be > written in another language.
How does this comment help us in designing a C library? > Our approach is actually described in the paper under the "first > member" section, in the &(cp.p) example -- although they don't point > out that it's the only one that doesn't require a cast and can be > checked by the compiler, unlike all the others. How does this solve the const-ness problem? -- G. Jungman
