From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e5eb8ca5dcea2827 X-Google-Attributes: gid103376,public From: Laurent Guerby Subject: Re: Ada OO Mechanism Date: 1999/05/28 Message-ID: <86lne9qh28.fsf@ppp-159-70.villette.club-internet.fr>#1/1 X-Deja-AN: 483169917 References: <7i05aq$rgl$1@news.orbitworld.net> <7i17gj$1u1k@news2.newsguy.com> <7icgkg$k4q$1@nnrp1.deja.com> <3749E9EC.2842436A@aasaa.ofe.org> <7id2eo$fag@drn.newsguy.com> <3749FF7D.F17CE16A@aasaa.ofe.org> <374AC676.F7AE0772@lmco.com> <7ieuja$5v9@news1.newsguy.com> <7ik1e5$8bc@news1.newsguy.com> X-Trace: front1.grolier.fr 927909800 6312 195.36.159.70 (28 May 1999 16:43:20 GMT) Organization: Club-Internet (France) NNTP-Posting-Date: 28 May 1999 16:43:20 GMT Newsgroups: comp.lang.ada Date: 1999-05-28T16:43:20+00:00 List-Id: Hyman Rosen writes: > [...] > From reading the Rationale, I thought that the assignment to z would > result in a dispatching call to Get, using the tag of z that was set > at its initialization. What am I doing wrong here? How do controlling > return types work? A variable, once given an initial value, never change its type in Ada. So the assignment to a class wide variable can only be done in a declarative part. --LG