Article View: comp.std.c
Article #4335Re: Grammar for Switch Statement
From: David Adrien Tanguay
Date: Mon, 06 Nov 1995 13:46
Date: Mon, 06 Nov 1995 13:46
19 lines
1366 bytes
1366 bytes
Paul Long <plong@perf.com> writes: #From "A brief(ish) description of BCPL" by Clive, it looks like a return value #is specified in BCPL with the RESULTIS command, which apparently doesn't #require parentheses (the RETURN command doesn't specify a return value). Alan #Watson posted an article in comp.lang.c that contains "very old C" that does #not have parentheses around the return-statement operand. Mark Brader posted an #article in comp.lang.c that contains this line in B: # return (f); /* at least, I think the () were required */ #[His comment.] # #(You guys have any further comment?) The parentheses are required in B. I just checked the manual -- the compiler might be forgiving. We still maintain (and get paid for) a B compiler! This posting is a week too late... -- David Tanguay dat@Thinkage.on.ca http://www.thinkage.on.ca/~dat/ Thinkage, Ltd. Kitchener, Ontario, Canada [43.24N 80.29W]
Technical Details
Message-ID:
<DHMJKu.CHz@thinkage.on.ca>Path:
arc1-ca.pugleaf.net!thinkage.on.ca!datReferences:
<4797ni$avq@news0.rain.rg.net> <47alln$ph1@newshost.lanl.gov> <47bjej$ocf@news0.rain.rg.net>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!thinkage.on.ca!dat From: dat@thinkage.on.ca (David Adrien Tanguay) Subject: Re: Grammar for Switch Statement Message-ID: <DHMJKu.CHz@thinkage.on.ca> Sender: news@thinkage.on.ca Organization: Thinkage Ltd., Kitchener, Ontario References: <4797ni$avq@news0.rain.rg.net> <47alln$ph1@newshost.lanl.gov> <47bjej$ocf@news0.rain.rg.net> Date: Mon, 6 Nov 1995 13:46:06 GMT