From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,15d588b58ebcebac X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Initializers Date: 19 Dec 2006 22:52:31 -0600 Organization: LJK Software Message-ID: References: <1166580131.054327.67090@80g2000cwy.googlegroups.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1166590306 23978 192.135.80.34 (20 Dec 2006 04:51:46 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 20 Dec 2006 04:51:46 +0000 (UTC) Xref: g2news2.google.com comp.lang.ada:7955 Date: 2006-12-19T22:52:31-06:00 List-Id: In article <1166580131.054327.67090@80g2000cwy.googlegroups.com>, "markww" writes: > I'm trying to compare C++ to Ada. I'm looking specifically at Ada's > lack of 'initializers'. I am guessing that this means there is no > 'constructor' to Ada packages maybe? If that's the case - where do you > initialize anything that needs setup when it comes into existence? For record components (the most common case I run into) take care of it in the type declaration: FIELD_1 : INTEGER := 15; FIELD_2 : STRING ( 1 .. 5 ) := "Omaha";