🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6089

Re: patch to permit void RHS for `&&' and `||'

#6089
From: Paul David Fox
Date: Fri, 20 Dec 1996 00:00
30 lines
1679 bytes
Fergus Henderson wrote:
> 
> Hi,
> 
> It would be nice if C and C++ supported the sh and Perl style
> of error handling:
> 
>         some_operation || die("it failed");
> 
> Unfortunately that doesn't work in ANSI/ISO C or C++...
> but here's a patch to make it work in GNU C/C++.
> 

I'm impressed that you managed to figure out how to change the
compiler to do what you want. But it is a shame that what you have
cannot be called C/C++ by any stretch of the imagination.

Please do not pollute the programming language with the bizarre
syntax based perl.

I do hope that no-one else thinks this is a good idea.

_______________________________________________________
| Paul David Fox          Lehman Brothers.             |
| ######################  E-mail: pfox@lehman.com      | 
| # This space for rent#  Home: fox@crisp.demon.co.uk  | 
| ######################  Tel: +44 171 601 0011 x6397  | 
** I do not speak for Lehmans. Everything I say is my own stupid fault.
**
Technical Details
Message-ID: <32BA49B1.794BDF32@lehman.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <199612191718.EAA15591@kryten.cs.mu.OZ.AU.mu.OZ.AU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,727a5cb51958e971
X-Google-Attributes: gid113d02,public
From: pfox@lehman.com (Paul David Fox)
Subject: Re: patch to permit void RHS for `&&' and `||'
Date: 1996/12/20
Message-ID: <32BA49B1.794BDF32@lehman.com>
X-Deja-AN: 205058647
sender: bug-gcc-request@prep.ai.mit.edu
references: <199612191718.EAA15591@kryten.cs.mu.OZ.AU.mu.OZ.AU>
content-type: text/plain; charset=us-ascii
organization: Lehman Brothers, Inc.
x-gateway: relay3.UU.NET from bug-gcc to gnu.gcc.bug; Fri, 20 Dec 1996 03:52:25 EST
mime-version: 1.0
newsgroups: gnu.gcc.bug
x-mailer: Mozilla 3.0 (X11; I; SunOS 4.1.4 sun4m)