comp.lang.ada
 help / color / mirror / Atom feed
* (no subject given)
@ 1996-09-03  0:00 Chris Sparks
  1996-09-04  0:00 ` Jon S Anthony
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Sparks @ 1996-09-03  0:00 UTC (permalink / raw)



I want to thank all of the individuals who responded to my query
about the "when others" part for a case statement.  My group decided
to not use "when others" so that the compiler can catch any new additions.

Thanks Robert for the insight about "pragma Assert".  Definitely a winner!

Chris Sparks

PS: Sorry for my ILLEGAL use of the work ERRONEOUS (pun intended)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (no subject given)
  1996-09-03  0:00 (no subject given) Chris Sparks
@ 1996-09-04  0:00 ` Jon S Anthony
  1996-09-05  0:00   ` Robert Dewar
  1996-09-05  0:00 ` why not when others David Taylor
  1996-09-06  0:00 ` (no subject given) Jon S Anthony
  2 siblings, 1 reply; 6+ messages in thread
From: Jon S Anthony @ 1996-09-04  0:00 UTC (permalink / raw)



In article <INFO-ADA%96090309470743@LISTSERV.NODAK.EDU> Chris Sparks <sparks@AISF.COM> writes:

> Thanks Robert for the insight about "pragma Assert".  Definitely a winner!

Yes, that was clever and quite nice.  Too bad pragma Assert is not
standard...

/Jon
-- 
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178

617.484.3383
jsa@organon.com





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (no subject given)
  1996-09-04  0:00 ` Jon S Anthony
@ 1996-09-05  0:00   ` Robert Dewar
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Dewar @ 1996-09-05  0:00 UTC (permalink / raw)



Jon Anthony said

"Yes, that was clever and quite nice.  Too bad pragma Assert is not
standard..."

Well too bad in the abstract, but in practice I expect all Ada 95 compilers
will implement pragma Assert.
So it does not make much difference to users.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* why not when others
  1996-09-03  0:00 (no subject given) Chris Sparks
  1996-09-04  0:00 ` Jon S Anthony
@ 1996-09-05  0:00 ` David Taylor
  1996-09-06  0:00   ` Robert Dewar
  1996-09-06  0:00 ` (no subject given) Jon S Anthony
  2 siblings, 1 reply; 6+ messages in thread
From: David Taylor @ 1996-09-05  0:00 UTC (permalink / raw)



Chris Sparks wrote:
> 
> I want to thank all of the individuals who responded to my query
> about the "when others" part for a case statement.  My group decided
> to not use "when others" so that the compiler can catch any new additions.
> 
> Thanks Robert for the insight about "pragma Assert".  Definitely a winner!
> 
> Chris Sparks
> 
> PS: Sorry for my ILLEGAL use of the work ERRONEOUS (pun intended)

If you are working on a large program of approx 1M semicolons and have 
40 programmmers and many interdependent parts and an overly ambitious 
schedule and your best change assessment tool is grep, you will learn to 
program defensively by doing such things as not using "when others" 
whenever possible.  Learn to make the compiler do as much of the grunt 
work as you can.

dt




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: why not when others
  1996-09-05  0:00 ` why not when others David Taylor
@ 1996-09-06  0:00   ` Robert Dewar
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Dewar @ 1996-09-06  0:00 UTC (permalink / raw)



David said

"If you are working on a large program of approx 1M semicolons and have
40 programmmers and many interdependent parts and an overly ambitious
schedule and your best change assessment tool is grep, you will learn to
program defensively by doing such things as not using "when others"
whenever possible.  Learn to make the compiler do as much of the grunt
work as you can."

not to mention choosing the language that will do as much of the grunt work
as possible.

perhaps that can be a slogan for Ada 95:

The language that takes the grunt work out of programming

:-)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: (no subject given)
  1996-09-03  0:00 (no subject given) Chris Sparks
  1996-09-04  0:00 ` Jon S Anthony
  1996-09-05  0:00 ` why not when others David Taylor
@ 1996-09-06  0:00 ` Jon S Anthony
  2 siblings, 0 replies; 6+ messages in thread
From: Jon S Anthony @ 1996-09-06  0:00 UTC (permalink / raw)



In article <dewar.841956102@schonberg> dewar@cs.nyu.edu (Robert Dewar) writes:

> "Yes, that was clever and quite nice.  Too bad pragma Assert is not
> standard..."
> 
> Well too bad in the abstract, but in practice I expect all Ada 95 compilers
> will implement pragma Assert.
> So it does not make much difference to users.

Only if they have the same semantics.  Will this be true?  Does the
Intermetric accept this?  Does ObjectAda implement the pragma as defined
in GNAT?  Anyone who knows care to say?

/Jon
-- 
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178

617.484.3383
jsa@organon.com





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-09-06  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-03  0:00 (no subject given) Chris Sparks
1996-09-04  0:00 ` Jon S Anthony
1996-09-05  0:00   ` Robert Dewar
1996-09-05  0:00 ` why not when others David Taylor
1996-09-06  0:00   ` Robert Dewar
1996-09-06  0:00 ` (no subject given) Jon S Anthony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox