From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030187AbWD0Pbc (ORCPT ); Thu, 27 Apr 2006 11:31:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030189AbWD0Pbc (ORCPT ); Thu, 27 Apr 2006 11:31:32 -0400 Received: from gateway.argo.co.il ([194.90.79.130]:18192 "EHLO argo2k.argo.co.il") by vger.kernel.org with ESMTP id S1030187AbWD0Pbb (ORCPT ); Thu, 27 Apr 2006 11:31:31 -0400 Message-ID: <4450E3CB.1090206@argo.co.il> Date: Thu, 27 Apr 2006 18:31:23 +0300 From: Avi Kivity User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: Martin Mares CC: Denis Vlasenko , Kyle Moffett , Roman Kononov , LKML Kernel Subject: Re: C++ pushback References: <20060426034252.69467.qmail@web81908.mail.mud.yahoo.com> <4EE8AD21-55B6-4653-AFE9-562AE9958213@mac.com> <44507BB9.7070603@argo.co.il> <200604271655.48757.vda@ilport.com.ua> <4450D4E9.4050606@argo.co.il> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Apr 2006 15:31:29.0472 (UTC) FILETIME=[A78CE400:01C66A0F] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Martin Mares wrote: >> As an example, you can easily get C++ to inline the hash function in a >> generic hashtable or the compare in a sort. I dare you to do it in C. >> > > As you wish :-) > > http://atrey.karlin.mff.cuni.cz/~mj/tmp/hashtable.h > Touche :) This is pushing all boundaries, however. That code is horrible. > It's somewhat ugly inside, but an equally strong generic structure build > with templates will be probably even uglier. > > Not at all. -- error compiling committee.c: too many arguments to function