home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!sschaem
- From: sschaem@teleport.com (Stephan Schaem)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: PPC compilers
- Date: 12 Jan 1996 12:40:44 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Message-ID: <4d5ksc$a2j@maureen.teleport.com>
- References: <john.hendrikx.40ka@grafix.xs4all.nl> <MQAQx*XOe@yaps.rhein.de> <kVfWx*h6f@yaps.rhein.de>
- NNTP-Posting-Host: linda.teleport.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Arno Eigenwillig (arno@yaps.rhein.de) wrote:
- : In article <4cuhng$dmn@maureen.teleport.com>, Stephan Schaem writes:
-
- : > The claim was general: you can forget your variable type when you use
- : > them in C...
-
- : Wrong. The claim was that once you have chosen a type suitable for
- : your needs, you don't need to know what type with which representation
- : it actually was, as long as you use it as you anticipated to.
-
- Yes, you need to keep in mind the type definition... othersize you will
- write code like:
-
- a += b;
-
- and see maybe hours later when you compile that a was a VECTOR, and vector
- is a strcture not a type C can handle with its operators so you should have
- used a support function , and if none for ytour operation write one
- yourself.
-
- So, Wrong, with a += b; you need to keep in mind that you are adding
- vectors and that vectors are structure.
-
- : > What if clock_t is on other system a pointer to a bcpl string?
-
- : What if the plus operator stops working?
-
- what if you tryed to find better argument?
-
- : The language definition guarantees that clock_t has an arithmetic
- : type.
-
- Yes... and as a good little C programmer you are you will keep that in mind.
- You will keep in mind "My variable is of type clock_t, an integer)
-
- : > : Name an existing assembler that allows such things.
- : >
- : > You can write yourself [...]
-
- : OK, so there apparently is none. As I suspected.
-
- true... But I never said there was one.. just that its possible to offer
- #typedef to asm code
-
- : > I repeated myself too much already
-
- : Indeed. Repetition without progress is a waste.
-
- My point was porven way to often , but with reply like "what if the
- + operator stop working" is not something constructive to the discution
- and specially not destructive to my argument... YOU, make me repeat myself
- too often thiking at one stage the point wil go trought
-
- Stephan
-
-