Article View: comp.std.c
Article #3690Re: Parenthesis with return ?
From: Martin Kealey
Date: Thu, 10 Aug 1995 03:30
Date: Thu, 10 Aug 1995 03:30
16 lines
1071 bytes
1071 bytes
Clive D.W. Feather (clive@stdc.demon.co.uk) wrote: > In article <DCy9uG.CEr@proteon.com>, John Woods <jfw@proteon.com> wrote: > > ``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 ... The shift states in many parsers would see that as a cast leading into an expression, and then note that the thing following the ) is not valid for an expression, and reduce the sizeof. Is there any harm in refering to something that looks & acts like a cast, "a cast"?
Technical Details
Message-ID:
<6495221.12652.4448@kcbbs.gen.nz>Path:
arc1-ca.pugleaf.net!auckland.ac.nz!kcbbs!martinReferences:
<405fhs$iin@boson.epita.fr> <DCy9uG.CEr@proteon.com> <DCz7qw.HvM@stdc.demon.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!auckland.ac.nz!kcbbs!martin Newsgroups: comp.std.c Subject: Re: Parenthesis with return ? From: martin@kcbbs.gen.nz (Martin Kealey) Date: 10 Aug 95 03:30:52 GMT Message-ID: <6495221.12652.4448@kcbbs.gen.nz> References: <405fhs$iin@boson.epita.fr> <DCy9uG.CEr@proteon.com> <DCz7qw.HvM@stdc.demon.co.uk> Organization: Kappa Crucis Unix BBS, Auckland, NZ. X-Newsreader: TIN [version 1.2 PL2]