🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3234

Re: Are all Windows programs ill-formed?

#3234
From: John Max Skaller
Date: Mon, 05 Feb 1996 17:26
54 lines
2686 bytes
James Kanze US/ESC 60/3/141 #40763 wrote:
> I believe that the simple answer is that Windows programs operate in a
> unhosted environment.  

	This is a clear condemnation of the Standard,
Windows is obviously a hosting operating system.

> |> But if a compiler does not accept
> 
> |>      int main() { return 0; }
> 
> |> as a complete program, then that compiler is not a conforming C or C++
> |> implementation.


This is the crux of the problem. More important, when I
try to use "cout" the program won't link. This is 
important to me -- I've scrapped Win3.11 in favour
of NT mainly because of this deficiency (in Win3.1 wrt
the Standard).

In my opinion, program startup and environment
shouldn't be part of the language standard at all.

Instead, requirements should be created for creating
a BINDING to a particular environment, and then
bindings created.

For example, a POSIX binding would be popular;
but MS would still be free to create a Windows
binding.

In effect, there are _industry_ standards which
supercedes the ISO one, which is clearly
inadequate for modern needs. Unfortunately,
none of the "standards" are portable, _including_
the ISO one.

The distinction between "hosted" and "unhosted"
systems is better than nothing -- but it was more
useful 20 years ago than it is now, when it is
simply far too weak. (I.e two levels is just
not a good enough design any more)


-- 
John Max Skaller               voice: 61-2-566-2189
81 Glebe Point Rd              fax:   61-2-660-0850
GLEBE NSW 2037                 web: http://www.maxtal.com.au/~skaller/
AUSTRALIA                      email: skaller@maxtal.com.au
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
Technical Details
Message-ID: <311417C8.4016@suphys.physics.su.oz.au>
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
From: John Max Skaller <maxtal@suphys.physics.su.oz.au>
Newsgroups: comp.std.c++
Subject: Re: Are all Windows programs ill-formed?
Date: 05 Feb 1996 09:26:48 PST
Organization: MAXTAL
Approved: austern@isolde.mti.sgi.com
Message-ID: <311417C8.4016@suphys.physics.su.oz.au>
References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Sun, 04 Feb 1996 12:19:52 +1000
X-Mailer: Mozilla 2.0b6a (WinNT; I)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMRY950y4NqrwXLNJAQHk0gIAlT6LBdF2Mtje7Lrc2Zm804VZPBxHjK//
 l9v+rRpoJAvRKE5zPIgGf3pVtEeH4GNJg9QLXtcqftfMmPeVkf9chQ==
 =1wTv
Originator: austern@isolde.mti.sgi.com