comp.lang.ada
 help / color / mirror / Atom feed
* Valued procedures
@ 1999-01-21  0:00 dmitry6243
  1999-01-21  0:00 ` dennison
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: dmitry6243 @ 1999-01-21  0:00 UTC (permalink / raw)


Hi All!

I do not want to restart this weary thread again. Just a question: was the
following alternative (which seems to be a good compromise with rigouristic
point of view) ever considered:

Let's allow, for instance:

    procedure SideEffect (X: in out State) return Boolean;  -- Valid

but

    function SideEffect (X: in out State) return Boolean;   -- Invalid

Further, I believe it should be possible to ignore the result of a procedure.
(Using Ada bindings would be much less painful and produce clearer code if you
were not forced to declare tonns of dummy variables just to ignore various
unused results.) So that either

(a) SideEffect (TheState);

    would be valid, or

(b) the null statement could have a form:

    null <any-expression>;    -- The result is explicitly ignored

Regards,
Dmitry Kazakov

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




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

end of thread, other threads:[~1999-01-25  0:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-21  0:00 Valued procedures dmitry6243
1999-01-21  0:00 ` dennison
1999-01-21  0:00   ` robert_dewar
1999-01-21  0:00     ` dennison
1999-01-25  0:00   ` dmitry6243
1999-01-25  0:00     ` robert_dewar
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00 ` Tom Moran
1999-01-21  0:00 ` adam
1999-01-22  0:00   ` Tucker Taft
1999-01-22  0:00   ` adam

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