🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3692

Re: Parenthesis with return ?

#3692
From: Mark Brader
Date: Thu, 10 Aug 1995 04:53
27 lines
1492 bytes
> > > ``sizeof( int )'', what you are really looking at is ``sizeof CAST'',
> > > not ``sizeof( TYPE )''.
> 
> > In other words, the argument to sizeof is either "unary-expression" or
> > "( type-name )".
> 
> "( type-name )" sure looks a lot like a cast to me
> ...

Well, yes.  And the unary address operator looks like the bitwise "and"
operator.  So what?

> Is there any harm in refering to something that looks & acts like a cast,
> "a cast"?

In no way does it "act like" a cast.  A cast indicates an operation to
be performed on a value to produce another value, and that just isn't
happening here.  There aren't even any values involved.

One of the advantages of having a standard is that we can all learn to
use the same terminology, and avoid misunderstandings.  Please do that.
-- 
Mark Brader          \ "Oh, especially if it's accurate. There's nothing worse
msb@sq.com            \  than *accurate*, ill-informed, irresponsible press
SoftQuad Inc., Toronto \  speculation."  -- Lynn & Jay: "Yes, Prime Minister"

This article is in the public domain.
Technical Details
Message-ID: <1995Aug10.045307.27960@sq.com>
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!torn!sq!msb
References: <405fhs$iin@boson.epita.fr> <DCy9uG.CEr@proteon.com> <DCz7qw.HvM@stdc.demon.co.uk> <6495221.12652.4448@kcbbs.gen.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!torn!sq!msb
From: msb@sq.com (Mark Brader)
Subject: Re: Parenthesis with return ?
Message-ID: <1995Aug10.045307.27960@sq.com>
Organization: SoftQuad Inc., Toronto, Canada
References: <405fhs$iin@boson.epita.fr> <DCy9uG.CEr@proteon.com> <DCz7qw.HvM@stdc.demon.co.uk> <6495221.12652.4448@kcbbs.gen.nz>
Date: Thu, 10 Aug 1995 04:53:07 GMT