Thread View: net.lang.c++
5 messages
5 total messages
Started by jhoward
Thu, 17 Jul 1986 01:13
enhancement: have C++ announce release number when it runs
Author: jhoward
Date: Thu, 17 Jul 1986 01:13
Date: Thu, 17 Jul 1986 01:13
14 lines
1306 bytes
1306 bytes
In an environment such as we have with C++, where the compiler will occasion- ally be undergoing revs or intermediate patches, I would find it useful if the compiler would announce a summary at its completion. For example, if it said something like: 2 errors, 9 warnings; CC release 1.1 (AEGIS DOMAIN/IX) or such, we'd be able to know what compiler we are running. Perhaps Dr. Stroustrup would consider making this a part of the standard operation of C++? (I realize there might be no way to write code to output the machine/os id in a general way, but at least the release number would be very useful.) Jim Howard, Mentor Graphics, 8500 SW Creekside Pl., Beaverton, OR 97005-7191 (503) 626-1369 ...ucbvax!tektronix!sequent!mntgfx!jhoward
Re: enhancement: have C++ announce release number when it runs
Author: rcd
Date: Mon, 21 Jul 1986 06:51
Date: Mon, 21 Jul 1986 06:51
27 lines
2019 bytes
2019 bytes
> In an environment such as we have with C++, where the compiler will occasion-
> ally be undergoing revs or intermediate patches, I would find it useful if the
> compiler would announce a summary at its completion...
In an environment such as many of us have, I think it would be appreciated
if the compiler would be <very> quiet unless it has something of substance to
say.
In UNIX, this is almost a sacred precept (not that there aren't
blasphemers:-). I wish it were so in other systems. That is, if you want
the compiler to tell you about itself (instead of doing its normal job,
which is to compile a program), why not ask it that question?
If YOU, personally, feel a need to be reminded of the current version of
the compiler, fine. That may very well make sense in your environment, but
can't you achieve it with a shell script to control the compilation and
announce the version at the end?
I'm not just being peevish. (I AM being peevish, but not JUST so.) It can
be quite annoying to filter the output of a commonly-used program to get
rid of the stuff that doesn't need to be there. It is more reasonable to
expect a program to generate just the output that is needed, than to expect
it to do extra work to generate anything that MIGHT be needed and then let
its users do extra work to get rid of the noise they don't need.
--
Dick Dunn {hao,ucbvax,allegra}!nbires!rcd (303)444-5710 x3086
...At last it's the real thing...or close enough to pretend.
Re: enhancement: have C++ announce release number when it runs
Author: ian
Date: Mon, 21 Jul 1986 17:39
Date: Mon, 21 Jul 1986 17:39
15 lines
1348 bytes
1348 bytes
This does not strike me as a good idea. Making programs chatter about things that are generally irrelevant is not a step in the right direction. The approach we have taken is to provide an option (-V seems common enough for this purpose) to many of our programs; under -V, the program prints a version number in addition to its normal output. But our programs are SILENT in the absence of erroneous input, and that's in keeping with the way (almost) everything else in UNIX operates. A -V option would probably not be hard to add to C++ if you have the source. -- Ian F. Darwin | The home of... | Phone 416-963-8337 Director, R&D | SoftQuad Troff... | uucp: utzoo!sq!ian SoftQuad Inc. | ... troff for the | home uucp: darwin!ian Toronto, Canada | 80's. |
Re: enhancement: have C++ announce release number when it runs
Author: W. H. Pollock x4575 3S235
Date: Tue, 22 Jul 1986 23:28
Date: Tue, 22 Jul 1986 23:28
19 lines
1562 bytes
1562 bytes
In article <1317@sq.UUCP> ian@sq.UUCP (Ian Darwin) writes:
[in reply to request for verbose CC command]
>... The approach we have taken is to provide an option
>(-V seems common enough for this purpose) to many of our programs;
>under -V, the program prints a version number in addition to
>its normal output.
Another good approach is the one taken by the korn shell; the version
information is kept as an SCCS string. If you want to know the version
of ksh, you type "what ksh". If you want to use "-V", a better method
is to have the "CC -V" print the version info and quit, ignoring any other
arguments. (This way you don't have to provide a dummy dot-C file to just
find the version info.)
From the strong (left) arm of W. H. Pollock,
UUCP: ...{ihnp4,cbatt}!cbnap!whp
"The opinions expressed above are ficticious. Any resemblance
to the opinions of persons living or dead is purely coincidental."
Re: Re: enhancement: have C++ announce release number when it runs
Author: m.terribile
Date: Wed, 23 Jul 1986 05:10
Date: Wed, 23 Jul 1986 05:10
43 lines
2861 bytes
2861 bytes
> > In an environment such as we have with C++, where the compiler will occasion-
> > ally be undergoing revs or intermediate patches, I would find it useful if the
> > compiler would announce a summary at its completion...
>
> In an environment such as many of us have, I think it would be appreciated
> if the compiler would be <very> quiet unless it has something of substance to
> say.
Indeed, the UNIX philosophy, and the pleasantness of the environment, require
that noise pollution be kept to a minimum. On the other hand, the system
ought to tell you what it's doing.
Many of the PCC and PCCII based compilers have a ``+V'' option that does
nothing but announce the release number. This may be the cannonical
solution. Also, cfront puts its build date into the ``..c'' that it builds,
as a comment. Perhaps it could write the release as well?
> In UNIX, this is almost a sacred precept (not that there aren't
> blasphemers:-). I wish it were so in other systems. That is, if you want
> the compiler to tell you about itself (instead of doing its normal job,
> which is to compile a program), why not ask it that question?
> I'm not just being peevish. (I AM being peevish, but not JUST so.) It can
> be quite annoying to filter the output of a commonly-used program to get
> rid of the stuff that doesn't need to be there. It is more reasonable to
> expect a program to generate just the output that is needed, than to expect
> it to do extra work to generate anything that MIGHT be needed and then let
> its users do extra work to get rid of the noise they don't need.
Here, here. I wish that programs were more often seen and not heard.
That doesn't mean that there isn't room for ``verbose'' flags or ``statistics''
flags; just that these should not be presumed to be the outspit of interest
to the user when what he needs and wants is the object file.
Program designers should not push their notions of the right way to do it
onto a community that has bought into another way.
--
from Mole End Mark Terribile
(scrape .. dig ) mtx5b!mat
(Please mail to mtx5b!mat, NOT mtx5a!
mat, or to mtx5a!mtx5b!mat)
(mtx5b!mole-end!mat will also reach me)
,.. .,, ,,, ..,***_*.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads