TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Steven Lim <[log in to unmask]>
Fri, 12 Jul 2002 07:34:10 -0700
text/plain (25 lines)
Hi,

I'm wondering how do we declare a variable and NOT have it being initialized
to zero?

I'm mapping this variable to a non-volatile memory and hence would like to
retain it's data.

When I do a

y_type is an array (1..4) of boolean;
y:y_type;

The interesting thing is that in my disassembled code, another variable in
another package declared in the same way would not get initialized... is
there something I can do or din' do?

Than'x!

rgds,
Steven
--
Engineer
ST Aerospace

ATOM RSS1 RSS2