comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: on the use of "limited with"
Date: Sun, 9 Oct 2005 07:42:57 +0000 (UTC)
Date: 2005-10-09T07:42:57+00:00	[thread overview]
Message-ID: <diahm1$bv0$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com> (raw)
In-Reply-To: <1128779132.336469.160360@z14g2000cwz.googlegroups.com>

evangeli@cnam.fr wrote:
> hello,
> i recently downloaded gnat gpl and tested the new Ada 05 feature
> "limited with"
> here are two packages which defines two types:
> 
> limited with q;
> package p is
>    type tp_record is private;
>    type tp is access all tp_record;
>    function get_q(my_tp : in tp) return q.tq;

Try
... return access q.tq_record;

> private
>    type tp_record is record ... end record;
> end p;
> --=====================================--
> limited with p;
> package q is
>    type tq_record is private;
>    type tq is access all tq_record;
>    function get_p(my_tq : in tq) return p.tp;

Try
... return access p.tp_record;

Cheers

-- Martin



  reply	other threads:[~2005-10-09  7:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-08 13:45 on the use of "limited with" evangeli
2005-10-09  7:42 ` Martin Dowie [this message]
2005-10-09 11:19   ` evangeli
2005-10-09 13:12     ` Martin Dowie
2005-10-11  0:12     ` Randy Brukardt
replies disabled

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