From: Gautier <Gautier.deMontmollin@Maths.UniNe.CH>
To: 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: <377B20FD.C288B308@Maths.UniNe.CH> (raw)
In-Reply-To: 377A8C1A.6EFE0FF7@boeing.com
> 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/
next prev parent 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 ` Gautier [this message]
1999-07-01 0:00 ` John Harbaugh
1999-07-01 0:00 ` Ted Dennison
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