🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1200

Re: typecasting preferences

#1200
From: The Amorphous Mass
Date: Tue, 16 Apr 1996 19:55
17 lines
1384 bytes
On 16 Apr 1996, HASDI RODZMANN HASHIM wrote:

> Hi guys! I think my earlier post got lost so here it is again.... This is
> for a student compiler project of mine.... 
> 
> If you have a choice, do you want the parethesis pair over the caster
> (C-style) or over the castee (Pascal-style)? eg...

  C-style.  Especially since C types can contain multiple tokens;

  const char *(p) is less clear IMO than (const char *)p.

--
James Robinson            "Because we are returning a copy for postfix ++ 
james-robinson@uiowa.edu  expressions, statements such as (c++)++; won't
robinson@cs.uiowa.edu     work as expected."            -- Weiskamp & Flamig,
                                           _The_Complete_C++_Primer_, 2nd ed.
Technical Details
Message-ID: <Pine.A32.3.91.960416145209.106109C-100000@black.weeg.uiowa.edu>
Path: arc1-ca.pugleaf.net!black.weeg.uiowa.edu!robinson
References: <4l020g$i9j@srvr1.engin.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!black.weeg.uiowa.edu!robinson
From: The Amorphous Mass <robinson@blue.weeg.uiowa.edu>
Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc
Subject: Re: typecasting preferences
Date: Tue, 16 Apr 1996 14:55:17 -0500
Organization: University of Iowa, Iowa City, IA, USA
Distribution: world
Message-ID: <Pine.A32.3.91.960416145209.106109C-100000@black.weeg.uiowa.edu>
References: <4l020g$i9j@srvr1.engin.umich.edu>
NNTP-Posting-Host: black.weeg.uiowa.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: robinson@black.weeg.uiowa.edu
In-Reply-To: <4l020g$i9j@srvr1.engin.umich.edu>