comp.lang.ada
 help / color / mirror / Atom feed
From: Mendal@SIERRA.STANFORD.EDU (Geoff Mendal)
Subject: Derived Types, RM 3.4(11, 15)
Date: Thu, 22-Jan-87 04:13:13 EST	[thread overview]
Date: Thu Jan 22 04:13:13 1987
Message-ID: <12272896359.10.MENDAL@Sierra.Stanford.EDU> (raw)

Dear Ada Fans-
It's hardly been a week since the last SIGAda and we're already
confused.  Consider the following package spec:

  package P is
    type N is range 1 .. 10;
    type D is new N;  -- invalid

    function "+" (L, R : in N) return N;
  private
    type E is new N;  -- valid
  end;

What is the rationale for the special rules in RM 3.4(15)?  Why not
simply have predefined addition on type D and user-defined addition
on type E?

The rules on 3.4(15) are quite clear and obvious.  The question is
what is their underlying rationale?

   doug and geoff
-------

                 reply	other threads:[~1987-01-22  9:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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