comp.lang.ada
 help / color / mirror / Atom feed
From: att!cbnews!cbnewsl!willett@ucbvax.Berkeley.EDU  (david.c.willett)
Subject: Re: Ada statement
Date: 14 Jan 92 20:49:28 GMT	[thread overview]
Message-ID: <1992Jan14.204928.21571@cbnewsl.cb.att.com> (raw)

>From article <1992Jan14.031331.18320@cs.rose-hulman.edu>, by eigenstr@zoe.cs.r
ose-hulman.edu (Todd R. Eigenschink):
> about this then.  And now...the $64,000 question....
> 
> 	Why the HELL is there the NULL statement?????????????
> 
> There's only one use as far as I can tell...to fill an empty procedure/
> function declaration so that the body isn't empty.  So why not just allow
> an empty body?

I don't know the "official" answer to your question, but I would like to
offer two possibilities.

	You can use the NULL statement as one alternative of a conditonal
	accept, or as an alternative in a conditonal.  In both cases, it
	would be analogous to the FORTRAN  or C "continue".

	Ada is very strict about a programmer being explicit.  If you want
	to do something (or nothing) you must say so.  Having a NULL statement
	to tell the world that you are not doing anything is consistent with 
	this philosophy.

Good luck with the class,
Dave

             reply	other threads:[~1992-01-14 20:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-01-14 20:49 david.c.willett [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-01-15 17:37 Ada statement bu.edu!rpi!usenet.coe.montana.edu!ogicse!verdix!brucej
1992-01-15 17:13 Stan McQueen
1992-01-15 15:11 Greg Harvey
1992-01-15  6:09 dog.ee.lbl.gov!network.ucsd.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!us
1992-01-15  6:04 csus.edu!wupost!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!nntp.uorego
1992-01-15  1:15 dog.ee.lbl.gov!network.ucsd.edu!swrinde!mips!zaphod.mps.ohio-state.edu!so
1992-01-14 22:16 Jim Giles
1992-01-14 21:39 Jeffrey M. Schweiger
1992-01-14 19:18 Brian Hanafee
1992-01-14  3:13 csus.edu!wupost!spool.mu.edu!news.cs.indiana.edu!bronze!master.cs.rose-hu
replies disabled

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