TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Content-Transfer-Encoding:
7bit
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Steven Lim <[log in to unmask]>
Date:
Fri, 12 Jul 2002 07:34:10 -0700
Content-Type:
text/plain; charset="iso-8859-1"
MIME-Version:
1.0
Reply-To:
Steven Lim <[log in to unmask]>
Parts/Attachments:
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