comp.lang.ada
 help / color / mirror / Atom feed
From: Chris Morgan <mihalis@ix.netcom.com>
Subject: Re: newbie problem - how to
Date: 1998/11/08
Date: 1998-11-08T10:59:05-08:00	[thread overview]
Message-ID: <87emrej9fd.fsf@mihalis.ix.netcom.com> (raw)
In-Reply-To: C798D9F37614D4C6.3C8BB0F39DC657DD.624B5FD1EE04B9D9@library-proxy.airnews.net

Dana Holland <dana@nav.cc.tx.us> writes:

> bill_so@hotmail.com.nospam wrote:
> > 
> > any one who writes code that looks like this, should not be writing code !
> 
> As I've already explained, the indentation was originally there...

here we go - cut it into emacs, select the whole buffer, M-x
indent-region, and bingo :


task body WriteChar is
   c : character;
   i : integer;
begin
   loop
      select
	 when not Buffer.full=>
	   accept Write(ch : in character) do
	      c := ch;
	   end Write;
	   i := (Buffer.rear + 1) mod 10;               <-------   Line 23
	     delay 0.01;
	   Buffer.rear := i;
	   Buffer.empty := false;
	   Buffer.List(Buffer.rear) := c;
	   i := Buffer.count + 1;
	   delay 0.1;
	   Buffer.count := i;
	   if (Buffer.count = 10) then
	      Buffer.full := true;
	   end if;
      or
	 delay 0.1;
      end select;
   end loop;
end WriteChar;


> 
> You know, when someone asks a question in an area where I'm skilled, I
> don't attempt to make them feel like an idiot.  I either answer the
> question, or politely explain why I can't answer it - or, if I simply
> don't feel like being bothered, I don't post a response at all. 
> "Newbies" have to learn somewhere - as far as I know, there is no one on
> this planet who was born with complete knowledge of Ada, C++, COBOL, or
> any other language.  I think it's very sad that people who want to learn
> can't afford to ask a question of experienced users because of the risk
> of being ridiculed.

Agreed, but this group does quite well normally.

Chris

-- 
Chris Morgan <mihalis at ix.netcom.com> 
       Home Web Server -  http://mihalis.dyn.ml.org/index.html




  reply	other threads:[~1998-11-08  0:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-06  0:00 newbie problem - how to Dana Holland
1998-11-06  0:00 ` Chris Morgan
1998-11-07  0:00   ` Dana Holland
1998-11-07  0:00     ` Chris Morgan
1998-11-08  0:00     ` Dale Stanbrough
1998-11-08  0:00       ` bill_so
1998-11-08  0:00         ` Dana Holland
1998-11-08  0:00           ` Chris Morgan [this message]
1998-11-08  0:00       ` Dana Holland
1998-11-08  0:00         ` Chris Morgan
1998-11-09  0:00         ` Mark McKinney
1998-11-10  0:00           ` Dana Holland
1998-11-08  0:00       ` dewar
1998-11-08  0:00         ` Dana Holland
1998-11-09  0:00       ` Jerry van Dijk
1998-11-10  0:00         ` bob_ev
1998-11-10  0:00           ` dennison
1998-11-10  0:00             ` Robert A Duff
1998-11-16  0:00               ` Matthew Heaney
1998-11-16  0:00                 ` Matthew Heaney
1998-11-16  0:00             ` Matthew Heaney
1998-11-23  0:00               ` Robert I. Eachus
1998-11-24  0:00                 ` John McCabe
1998-11-08  0:00     ` dewar
1998-11-07  0:00 ` Jerry van Dijk
1998-11-07  0:00   ` Dana Holland
1998-11-07  0:00   ` bob
replies disabled

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