Page 4 of 4

Posted: Mon Oct 15, 2007 12:50 pm
by Trond

Code: Select all

C++;  // Makes C bigger and returns the original value!

Posted: Mon Oct 15, 2007 1:00 pm
by #NULL
:lol: :lol: :lol:

Posted: Mon Oct 15, 2007 1:13 pm
by Dare
:D

Re: C sucks (RANT ALERT)

Posted: Thu Oct 18, 2007 1:14 am
by dell_jockey
Trond wrote: And WHICH IDIOT made a SYSTEM programming language WITHOUT putting the BIT SIZES of the standard types into the standard? A valid 32-bit C compiler for x86 can, while following the standard, have an 8-bit int and a 64-bit long long (as long as a short and char is no more than 8 bits either). Only conventions keeps the programs running, not the standard.

Well, actually, the idiot you are referring to, Trond, is a guy that made sure that C is as portable as it is.
By not defining bit sizes of 'standard types' à priori, but putting the definition in header files - and employing a lot of other techniques like this one - a C compiler is portable across a remarkable range of architectures, be it from small 8-bit microprocessors, old VAX / PDP architectures, contemporary Intel stuff or all the way up to the Cray league...

Re: C sucks (RANT ALERT)

Posted: Thu Oct 18, 2007 10:32 am
by Trond
dell_jockey wrote:
Trond wrote: And WHICH IDIOT made a SYSTEM programming language WITHOUT putting the BIT SIZES of the standard types into the standard? A valid 32-bit C compiler for x86 can, while following the standard, have an 8-bit int and a 64-bit long long (as long as a short and char is no more than 8 bits either). Only conventions keeps the programs running, not the standard.

Well, actually, the idiot you are referring to, Trond, is a guy that made sure that C is as portable as it is.
By not defining bit sizes of 'standard types' à priori, but putting the definition in header files - and employing a lot of other techniques like this one - a C compiler is portable across a remarkable range of architectures, be it from small 8-bit microprocessors, old VAX / PDP architectures, contemporary Intel stuff or all the way up to the Cray league...
That's not true. It would be possible to define sizes for different architectures. Also, it would be possible to have defined sizes for some types and then have a generic type that matches the processor native size.

Posted: Thu Oct 18, 2007 10:53 am
by Dare
C's (or C++'s) problem is the same as linux's problem. Every man and woman and their dog took the basics and made it their own. Watch K&R weep over the grave of portability.

Posted: Sun Oct 21, 2007 7:50 am
by Mistrel
What about Visual Basic. :roll:

Show me something in C that's worse than a twip.

Posted: Sun Oct 21, 2007 11:17 am
by thefool
Visual Basic rocks for what it can do.