comp.lang.ada
 help / color / mirror / Atom feed
From: John Harbaugh <john.s.harbaugh2@boeing.com>
Subject: Re: Subtypes do not Statically Match
Date: 1999/07/01
Date: 1999-07-01T00:00:00+00:00	[thread overview]
Message-ID: <377B9D0B.40AD4D56@boeing.com> (raw)
In-Reply-To: 377B20FD.C288B308@Maths.UniNe.CH

Quite true.  The access parameter was chosen because we want to pass a
pointer from a list (classwide pointers actually), rather than to force
passing by reference.  

Cheers,

	- John

Gautier wrote:
> 
> >    function The_Handle(Obj : access Object) return String_Ref is
>                                ^
> A detail: you don't need the access there ( C's * or Pascal's VAR ):
> the "in" parameter will pass a reference for that object; an explicit
> "access" might even cause slowdowns (pointer on pointer) in some cases!
> 
> >    begin
> >       return Obj.Component'access;
> >       --Error: object subtype must statically match designated subtype
> >    end;
> 
> --
> Gautier
> 
> --------
> http://members.xoom.com/gdemont/




  reply	other threads:[~1999-07-01  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-30  0:00 Subtypes do not Statically Match John Harbaugh
1999-06-30  0:00 ` James S. Rogers
1999-07-01  0:00   ` John Harbaugh
1999-07-02  0:00     ` Robert I. Eachus
1999-07-01  0:00 ` Ted Dennison
1999-07-01  0:00 ` Gautier
1999-07-01  0:00   ` John Harbaugh [this message]
1999-07-01  0:00 ` Robert A Duff
replies disabled

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