comp.lang.ada
 help / color / mirror / Atom feed
From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe)
Subject: p(x: out File_Type)
Date: 1996/12/02
Date: 1996-12-02T00:00:00+00:00	[thread overview]
Message-ID: <57u5ik$qdc$1@goanna.cs.rmit.edu.au> (raw)


Does

	procedure P(...; X: out File_Type)

ever make sense, where File_Type is one of the standard file types
(from Sequential_IO, Direct_IO, or Text_IO)?

I can find no standard procedures with parameters like that in the
Ada 95 LRM.  I do not want to use them myself.  I don't _think_ they
make sense.

But writing
	procedure P(...; X: out File_Type)
when they mean
	procedure P(...; X: in out File_Type)
is a common mistake that our CS1 students make, and they compiler
they use quietly gulps it down with no indication that it is odd.

-- 
Govt saves money by cutting legal aid, guilty plea rates soar;
poverty is a crime!  (See also recent Sci.Am.)
Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.




             reply	other threads:[~1996-12-02  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-02  0:00 Richard A. O'Keefe [this message]
1996-12-03  0:00 ` p(x: out File_Type) Steve Jones - JON
replies disabled

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