This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: containers tentative design summary


At Tue, 27 Oct 2009 17:09:09 -0600,
>   /* claims not to twiddle v.data[] */
>   gsl_some_typical_const_function((const gsl_const_vector *) &v);
> 

The problem with anything involving explicit casts is that we lose
type-safety.  If v is not a vector there's no way to detect the error,
which closes the hole of const-related errors but opens another one.

-- 
Brian Gough


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]