From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 5 09:11:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D594D106564A for ; Fri, 5 Dec 2008 09:11:22 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 2237D8FC1C for ; Fri, 5 Dec 2008 09:11:21 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 05 Dec 2008 09:11:19 -0000 Received: from p54A3E8C7.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.232.199] by mail.gmx.net (mp013) with SMTP; 05 Dec 2008 10:11:19 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX1+JF5Z/wmKJB0Tn1T/mq9NiMrDiS5C/NAgSdBgZCt swQzAjtOiKbSEg Message-ID: <4938F036.4010600@gmx.de> Date: Fri, 05 Dec 2008 10:11:18 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: Garrett Cooper References: <7d6fde3d0812040324y3bf0901cy1f4a6d961362c314@mail.gmail.com> <20081205072229.GE18652@hoeg.nl> <7d6fde3d0812050034y43a70ce8i49fbba92f9c8943b@mail.gmail.com> <7d6fde3d0812050035u6e3ea930o9e093830a8608444@mail.gmail.com> <20081205084441.GA29312@owl.midgard.homeip.net> <7d6fde3d0812050050l57684eebkf14f252d78b68ec0@mail.gmail.com> In-Reply-To: <7d6fde3d0812050050l57684eebkf14f252d78b68ec0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 Cc: Maksim Yevmenkin , FreeBSD Hackers Subject: Re: RFC: small syscons and kbd patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 09:11:22 -0000 Garrett Cooper schrieb: > (I feel like I'm getting off on a bikeshed topic, but...) > > 1. What dialect of C was it defined in? Is it still used in the > standard dialect (honestly, this is the first time I've ever seen it > before, but then again I am a younger generation user)? Dialect? The ! operator is plain vanilla standard C. It takes a scalar operand and returns 1, if it compares equal to 0, otherwise it returns 0. !!, i.e. two consecutive ! operators, is one of the oldest tricks in the book, right next to (a > b) - (a < b) for comparison functions and countless other idioms. > 3. What's the real loss of going to `? :', beyond maybe 3 extra > keystrokes if it's easier for folks who may not be as experienced to > read? I'd like my bikeshed grass green, please. Christoph