From: anhvofrcaus@gmail.com
Subject: Re: object(<>)
Date: Mon, 13 Apr 2009 10:58:56 -0700 (PDT)
Date: 2009-04-13T10:58:56-07:00 [thread overview]
Message-ID: <1f38bec4-2047-4ae6-aeb9-cd84c29ccb1c@v1g2000prd.googlegroups.com> (raw)
In-Reply-To: 18c70875-f9c2-4883-8c30-aaac314746f5@b1g2000vbc.googlegroups.com
On Apr 13, 9:30 am, convergence82 <tiami...@gmail.com> wrote:
> what does this mean? Does it mean that I can call joemontana
> ( anytype)?
>
> -------------------------jeffrey.ads
> type Cd is ..........
> package Convert_Cd is new joemontana(Cd); --====> does this mean
> I'm instantiating the
>
> -- generic package joemontana for the type 'Cd'?
>
> -------------------------jeffrey.adb
> with_cd : System.Address
> x := Convert_Cd.To_Pointer( with_cd);
>
> -------------------------joemontana.spc
> generic
> type Object(<>) is limited private;
> package joemontana is
> type Object_Pointer is access all Object;
> ...
> function To_Pointer(Value : System.Address) return Object_Pointer;
> ...
> end joemontana;
Yes, it means just that. But wait, you can save time by using the
predefined one, http://adaic.org/standards/05rm/html/RM-13-7-2.html#I4643
A. Vo
next prev parent reply other threads:[~2009-04-13 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-13 16:30 object(<>) convergence82
2009-04-13 17:58 ` anhvofrcaus [this message]
2009-04-13 18:10 ` object(<>) convergence82
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox