comp.lang.ada
 help / color / mirror / Atom feed
* Initialising stuff
@ 2001-10-16 20:16 chris.danx
  2001-10-16 20:40 ` Ted Dennison
  2001-10-16 22:54 ` Mark Johnson
  0 siblings, 2 replies; 7+ messages in thread
From: chris.danx @ 2001-10-16 20:16 UTC (permalink / raw)


Hi,

I need a variable (global) for a screen package (write to video memory) and
would like it to be initialised once and once only when the package is
"with"ed.

I can think of one way to do this...

package body xxx is
   ...
begin
   initialise screen stuff here;
end xxx;

but I'm unsure if this will work as I don't know the issues involved.  Will
this work bearing in mind the purpose of the package?

Is the following the same or similar?

package xxx is

    ...

    private
        type yyy
            is record
                abc : byte := 0;
            end record;
        a_yyy : yyy;
end xxx;


Any advice?


Thanks,
Chris




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-18  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 20:16 Initialising stuff chris.danx
2001-10-16 20:40 ` Ted Dennison
2001-10-16 21:26   ` chris.danx
2001-10-17  2:42     ` Jeffrey Carter
2001-10-18  8:18       ` chris.danx
2001-10-16 22:54 ` Mark Johnson
2001-10-16 23:27   ` chris.danx

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