On Sun, 15 Nov 2009, Jonathan Underwood wrote:
I think it would be better if GSL, being written in C, were to present the most functional interface at the expense of sacrificing type safety, and higher level language bindings could then wrap that API and do type checking as needed. As gerard says, C isn't about type safety.
I agree. A good C programmer is comfortable with casts and knows perfectly well that it is up to them to track them. And the compiler (give a chance) will usually at least warn you about apparent inconsistency. rgb
Jonathan
Robert G. Brown http://www.phy.duke.edu/~rgb/ Duke University Dept. of Physics, Box 90305 Durham, N.C. 27708-0305 Phone: 1-919-660-2567 Fax: 919-660-2525 email:[email protected]
