Article View: alt.msdos.programmer
Article #1205Re: typecasting preferences
From: Lawrence Kirby
Date: Wed, 17 Apr 1996 23:58
Date: Wed, 17 Apr 1996 23:58
22 lines
1505 bytes
1505 bytes
In article <4l020g$i9j@srvr1.engin.umich.edu>
hasdi@news-server.engin.umich.edu "HASDI RODZMANN HASHIM" writes:
>Hi guys! I think my earlier post got lost so here it is again.... This is
>for a student compiler project of mine....
This is entirely down to what your compiler actually compiles (other
than students!). If it is C use C cases, if it is Pascal use Pascal
conversions. If it is something else use whatever fits the type system
of the language. Pascal conversions wouldn't work at all well with complex
C type declarations and may not even produce an unambiguous grammar.
>If you have a choice, do you want the parethesis pair over the caster
>(C-style) or over the castee (Pascal-style)? eg...
I would use whatever is appropriate for the rest of the language.
--
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------
Technical Details
Message-ID:
<829785521snz@genesis.demon.co.uk>Path:
arc1-ca.pugleaf.net!mail2news.demon.co.uk!genesis.demon.co.ukReferences:
<4l020g$i9j@srvr1.engin.umich.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!genesis.demon.co.uk From: Lawrence Kirby <fred@genesis.demon.co.uk> Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc Subject: Re: typecasting preferences Date: Wed, 17 Apr 96 23:58:41 GMT Organization: none Message-ID: <829785521snz@genesis.demon.co.uk> References: <4l020g$i9j@srvr1.engin.umich.edu> Reply-To: fred@genesis.demon.co.uk X-NNTP-Posting-Host: genesis.demon.co.uk X-Newsreader: Demon Internet Simple News v1.27 X-Mail2News-Path: genesis.demon.co.uk