From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Question[s] about aliased extended return.
Date: Sat, 10 Nov 2012 08:08:41 -0800 (PST)
Date: 2012-11-10T08:08:41-08:00 [thread overview]
Message-ID: <56e87da1-bd1f-4629-800a-1b0570c0f460@googlegroups.com> (raw)
In-Reply-To: <k7kvkm$3k2$1@munin.nbi.dk>
On Saturday, November 10, 2012 12:27:20 AM UTC-7, Randy Brukardt wrote:
> "Shark8" <onewingedshark@gmail.com> wrote in message
>
> news:5dd387bf-f15e-4800-8c92-ceb87c956581@googlegroups.com...
>
> >As I have it the thin binding is only in the package-bodies, completely
> >unexposed to the client.
>
> I've tended to put them in private packages (or the private part), mainly so
> each API only needs to be defined once. By putting them in the private part
> or in private packages, child units can use them, but clients still don't
> have access. Of course, if you're CERTAIN that you'll NEVER need to use the
> same API somewhere else, the body is probably better. (But who's certain of
> anything?? :-)
Good points.
In the OpenGL binding there's only one function that it's looking like might be useful in a parent's private part (glGetInteger) which is needed for getting the numbers of "objects" and therefore might make a use in parameters for a generic package that set the types up:
Generic
Max_Textures : Integer := glGetInteger( [constant for 'textures'] );
Package Types is
SubType Textures is Enum Range Texture_Base..Texture_Base+Enum(Max_Textures);
End Types;
{Top of my head, no syntax-check/compile}
next prev parent reply other threads:[~2012-11-10 16:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 15:55 Question[s] about aliased extended return Shark8
2012-11-09 0:43 ` Randy Brukardt
2012-11-09 3:40 ` Yannick Duchêne (Hibou57)
2012-11-10 7:34 ` Randy Brukardt
2012-11-09 19:42 ` Shark8
2012-11-09 20:53 ` sbelmont700
2012-11-09 21:44 ` Yannick Duchêne (Hibou57)
2012-11-09 22:04 ` sbelmont700
2012-11-09 22:56 ` Shark8
2012-11-09 22:54 ` Shark8
2012-11-10 7:27 ` Randy Brukardt
2012-11-10 16:08 ` Shark8 [this message]
2012-11-10 1:08 ` Jeffrey Carter
2012-11-10 1:52 ` Shark8
2012-11-10 2:17 ` Yannick Duchêne (Hibou57)
2012-11-10 10:59 ` Bill Findlay
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox