Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ba2uV-0001iR-9D for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 15:37:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ba2uT-0008Po-N0 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 15:37:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ba2t5-0006rS-Nh for pgsql-hackers@postgresql.org; Wed, 17 Aug 2016 15:36:15 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ba2t2-0005wM-CM for pgsql-hackers@postgresql.org; Wed, 17 Aug 2016 15:36:14 +0000 Received: from localhost ([127.0.0.1]:44570 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1ba2sv-0004s8-2r; Wed, 17 Aug 2016 15:36:05 +0000 From: Andrew Gierth To: Robert Haas Cc: Piotr Stefaniak , Jim Nasby , Gavin Flower , dandl , Adam Brusselback , Joy Arulraj , kang joni , Dmitry Igrishin , Pg Hackers , Peter Eisentraut Subject: Re: [GENERAL] C++ port of Postgres In-Reply-To: (Robert Haas's message of "Wed, 17 Aug 2016 11:20:46 -0400") Message-ID: <87a8gbjtxr.fsf@news-spur.riddles.org.uk> References: <007001d1f786$d903fa90$8b0befb0$@andl.org> <00a52208-3199-5858-8846-2530b0bb34df@archidevsys.co.nz> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Wed, 17 Aug 2016 16:36:05 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org >>>>> "Robert" == Robert Haas writes: Robert> Hmm, so sizeof() has different semantics in C vs. C++? No. '1' has different semantics in C vs C++. (In C, '1' is an int, whereas in C++ it's a char. It so happens that (sizeof '1') is the only case which is valid in both C and C++ where this makes a difference.) -- Andrew (irc:RhodiumToad) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers