Re: VS2005 doesn't like its own suggestions
- From: "Andrew McDonald" <myrmecophagavir@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 Jul 2005 13:43:22 +0100
"David F" <David-White@xxxxxxxxxxxxx> wrote...
> 1. Me, as an individual doing whatever with my program, is by no means
> even close in its consequences to what MS does, even if both of us doing
> the same. When I typedef in my program, it has an effect ONLY on me.
> When MS does, it imposes something on just about 3 million C++
> programmers.
What on Earth are you talking about? You are never forced to use INT. If you know it's a typedef for
int in the situations under which you will always be compiling, why don't you use int instead? In
what situations is INT imposed upon you? You seem to be implying you can't use int just because
there's some other optional typedef around for it!
> 2. MS, as an irresponsible entity, on top of shaving my throat yet another
> keyword - INT, kept changing its definition - so far for "portability".
> Moreover, nobody showed why INT, even if they would not keep
> changing it, contributes to portability more than if they would keep int as
> 32 bit int. See again my analysis.
INT is not a keyword.
As for portability, assume the size specification doesn't change (i.e. INT is always 32 bits). Write
out an INT into a data file now. Now come back to this file and this code in 5, even 10 years' time.
Or do it now, but use a different compiler such as CodeWarrior or Borland. Under the Win32 spec, an
INT is always 32 bits, so you should have no trouble reading this value back in.
Now what do you suppose happens if your code instead writes and reads an int? You are at the mercy
of the compiler. In the future, or on a different compiler, will your code compile to reading the
same number bytes in as you wrote out previously? Who knows, since the size of int is not fixed by
your cherished ISO C++ standard, unlike other languages.
> 3. I am afraid that several participants here miss a fundamental point.
> To say that a certain OS support a certain language, means that one can
> use that language, and that language alone, w/o any other "keyword", to
> complete his writing. Several people here confuse the term "extensibility".
> They claim that "everybody does it" - "everybody has extentions".
> Extentions means adding library functions, that can simply save time
> when writing a program, but it is up to a programer to decide whether
> to use those libraries on the one hand but can as well accomplish the
> same result by not using them. There is no language changes here.
> Those MS' keywords & OS/compiler are changing, distort the language
> and sometimes forcing me to use them in order to accomplish certain
> functionality.
This argument seems very confused to me. I don't think anyone is claiming that any *OS* is directly
supporting any language. Rather, here is Windows. If you want to write programs that use the
advanced features of Windows, Microsoft provides a C SDK that allows you to do so. No keywords are
necessary for this task; some types are provided though, some structs, some simple typedefs. You
don't have to use them in your code if you aren't making use of that functionality.
I fail to see how a typedef constitutes a language change. Typedefs are a normal part of
standards-compliant C/C++. Of course you have to define them in your code for the compiler to
understand them. Handy, then, that MS provides a bunch of headers for this, no?
In addition, I believe you don't understand the difference between Microsoft's compiler, with
whatever extensions it implements, and the Windows Platform SDK. INT is not a Microsoft extension to
the language, nor can you even access it unless you're writing a non-console application. It's
defined in a *Platform SDK* header, but you can't say you're forced to use it just because you're
using MS' compiler.
Andrew
.
- References:
- VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Carl Daniel [VC++ MVP]
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Nishant Sivakumar
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Simon Watson
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Carl Daniel [VC++ MVP]
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Hendrik Schober
- Re: VS2005 doesn't like its own suggestions
- From: Nishant Sivakumar
- Re: VS2005 doesn't like its own suggestions
- From: Hendrik Schober
- Re: VS2005 doesn't like its own suggestions
- From: Lawrence Groves
- Re: VS2005 doesn't like its own suggestions
- From: John Carson
- Re: VS2005 doesn't like its own suggestions
- From: Lawrence Groves
- Re: VS2005 doesn't like its own suggestions
- From: Hendrik Schober
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: John Carson
- Re: VS2005 doesn't like its own suggestions
- From: David F
- VS2005 doesn't like its own suggestions
- Prev by Date: Re: unicode and debuging
- Next by Date: Re: How to set a backgroundcolor for a windows control (Trackbar) ?
- Previous by thread: Re: VS2005 doesn't like its own suggestions
- Next by thread: Re: VS2005 doesn't like its own suggestions
- Index(es):
Relevant Pages
|