Article View: alt.msdos.programmer
Article #1203Re: typecasting preferences
From: Tarang Deshpande
Date: Tue, 16 Apr 1996 18:34
Date: Tue, 16 Apr 1996 18:34
15 lines
1043 bytes
1043 bytes
HASDI RODZMANN HASHIM wrote: > > If you have a choice, do you want the parethesis pair over the caster > (C-style) or over the castee (Pascal-style)? eg... > > a = (int)b; /* cast to int */ > a = int(b); /* allowable in C++ */ > I would prefer the Pascal style where the parenthesis go around the thing being casted. This is so that the cast looks like a function and it then seems consistent when overriding the cast operator. Tarang
Technical Details
Message-ID:
<3173E842.7D17@willows.com>Path:
arc1-ca.pugleaf.net!noc.netcom.net!newsReferences:
<4l020g$i9j@srvr1.engin.umich.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!noc.netcom.net!news From: Tarang Deshpande <tarang@willows.com> Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc Subject: Re: typecasting preferences Date: Tue, 16 Apr 1996 11:34:42 -0700 Organization: NETCOM Network Operations Message-ID: <3173E842.7D17@willows.com> References: <4l020g$i9j@srvr1.engin.umich.edu> NNTP-Posting-Host: daffy.willows.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0GoldB2 (Win95; I) To: HASDI RODZMANN HASHIM <hasdi@news-server.engin.umich.edu>