Article View: comp.std.c++
Article #6Re: When is the C++ standard going to be completed?
From: Warwick Allison
Date: Tue, 27 Oct 1992 04:48
Date: Tue, 27 Oct 1992 04:48
45 lines
1752 bytes
1752 bytes
In <1c2nkpINN2sk@ub.d.umn.edu> cbusch@ub.d.umn.edu (Mmmm...) writes:
>Also, will the new c++ standard have anything like 'with' like
>pascal has? I suppose OOP can somewhat get abused by such
>a command, but it could be very useful for typing shortcuts
>amoung other things...
... things like making code unreadable. The trouble with WITH is that
to comprehend the identifiers in the WITH block, you must be familiar
with the record type that has been opened. Far superior is the use
of references which reduce typing, but can stilled be followed.
For example,
var a,b:integer;
with foo[bar] do
a:=b;
What is "a"? What is "b"? Maybe they are fields of foo[bar], maybe not.
But with:
int a,b;
int& fb=foo[bar];
fb.a=b;
The secret is revealed that "a" is part of foo[bar], while "b" is the local.
All without knowing what type foo[bar] is.
Being from a Pascal and Modula-2 background, I have become familiar with
the uglinesses of those languages so-called "features". [Over]use of nested
procedures is another scourge to the maintainer.
--
Warwick
--
_-_|\ warwick@cs.uq.oz.au /Disclaimer:
/ * <-- Computer Science Department, /
\_.-._/ University of Queensland, / C references are NULL && void*
v Brisbane, Australia. /
Technical Details
Message-ID:
<10803@uqcspe.cs.uq.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwickReferences:
<1c2nkpINN2sk@ub.d.umn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwick From: warwick@cs.uq.oz.au (Warwick Allison) Newsgroups: comp.std.c++ Subject: Re: When is the C++ standard going to be completed? Message-ID: <10803@uqcspe.cs.uq.oz.au> Date: 27 Oct 92 04:48:37 GMT References: <1c2nkpINN2sk@ub.d.umn.edu> Sender: news@cs.uq.oz.au Reply-To: warwick@cs.uq.oz.au Lines: 45