comp.lang.ada
 help / color / mirror / Atom feed
* Language Lawyer question
@ 2000-06-02  0:00 Wes Groleau
  2000-06-02  0:00 ` Paul Graham
  2000-06-02  0:00 ` David C. Hoos, Sr.
  0 siblings, 2 replies; 8+ messages in thread
From: Wes Groleau @ 2000-06-02  0:00 UTC (permalink / raw)


One of my coworkers just asked an interesting question:

   Why do we have to write

      Some_Type'Pred (Some_Value)

   when

      Some_Value'Pred

   is more natural/intuitive and
   carries just as much type info?

I pointed out that there is no type info in a literal (like
Orange'Pred) but he said that the type info would be somewhere 
else in the statement.  I could not quickly come up with a
counter-example.  Plus, how often would we use a literal as
parameter to 'Pred ?  Might as well just use the literal value 
of the Predecessor.


-- 
Wes Groleau
http://freepages.genealogy.rootsweb.com/~wgroleau




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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-02  0:00 Language Lawyer question Wes Groleau
2000-06-02  0:00 ` Paul Graham
2000-06-02  0:00 ` David C. Hoos, Sr.
2000-06-02  0:00   ` Keith Thompson
2000-06-04  0:00     ` Robert I. Eachus
2000-06-05  0:00       ` Robert A Duff
2000-06-05  0:00     ` Robert Dewar
2000-06-05  0:00   ` Robert A Duff

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