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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,23c6847871d5deb4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-28 03:59:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Example of OSI package/data structure? Date: 28 Nov 2001 05:59:11 -0600 Organization: LJK Software Message-ID: References: <3C04A024.DEAFCE6@meppen.sema.slb.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1006948752 13282 192.135.80.34 (28 Nov 2001 11:59:12 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 28 Nov 2001 11:59:12 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:17096 Date: 2001-11-28T05:59:11-06:00 List-Id: In article <3C04A024.DEAFCE6@meppen.sema.slb.com>, Vincent Smeets writes: > I have a description of a protocol that has to be coded in Ada95. I it > now coded (hacked) in a bad form in Ada83 and I want to redesign it for > Ada95. > > First I need a package structure. I want to decopple every layer as much > as possible and was thinking of a tagged type for the device and extend > it in every next layer. I have three ideas from which I think the first > is the best (your opinion please?): I think you are starting at the wrong end of the problem. The first step should be to build an ASN.1 compiler that emits Ada. In my experience that is much easier for Ada95 than for Ada83 because of additional attributes for creating access values for precompiled data.