🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1198

Re: typecasting preferences

#1198
From: Jon Shemitz
Date: Tue, 16 Apr 1996 17:50
26 lines
1245 bytes
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...
> 
> int a;
> float b;
> 
> a = (int)b; /* cast to int */
> a = int(b); /* allowable in C++ */
> 
> ...as for Pascal...
> a := integer(b); { "a" in an integer and "b" is a real }
> 
> Thanx!

Pascal style. TypeName(SomeVar) looks like a function call.

-- 

http://www.midnightbeach.com/jon	Personal Pages
http://www.midnightbeach.com/jon/pubs	Programming Publications
http://www.midnightbeach.com/hs		Home School Resource List
Technical Details
Message-ID: <3173DDDC.183A@midnightbeach.com>
Path: arc1-ca.pugleaf.net!news.scruz.net!usenet
References: <4l020g$i9j@srvr1.engin.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.scruz.net!usenet
From: Jon Shemitz <jon@midnightbeach.com>
Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc
Subject: Re: typecasting preferences
Date: Tue, 16 Apr 1996 10:50:20 -0700
Organization: Midnight Beach
Message-ID: <3173DDDC.183A@midnightbeach.com>
References: <4l020g$i9j@srvr1.engin.umich.edu>
NNTP-Posting-Host: 165.227.113.198
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (Win95; I)