From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11513 invoked by alias); 29 Oct 2009 18:06:37 -0000 Received: (qmail 11505 invoked by uid 22791); 29 Oct 2009 18:06:36 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_20,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.network-theory.co.uk (HELO mail.network-theory.co.uk) (66.199.228.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Oct 2009 18:06:31 +0000 Date: Thu, 29 Oct 2009 18:06:00 -0000 Message-ID: From: Brian Gough To: Gerard Jungman Cc: gsl-discuss@sourceware.org Subject: Re: containers tentative design summary In-Reply-To: <1256684949.19313.2.camel@manticore.lanl.gov> References: <1254708349.18519.4.camel@ForbiddenPlanet> <7f1eaee30910050750l738876b1p41e6bd8ae5aa6d16@mail.gmail.com> <1254783367.28192.98.camel@manticore.lanl.gov> <1256684949.19313.2.camel@manticore.lanl.gov> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Message-Mac: 88060eeb6a50b9161e5dacac3ca1705a Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00029.txt.bz2 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