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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Mart van de Wege Newsgroups: comp.lang.ada Subject: Re: Can't access record attribute in derived type Date: Wed, 08 Mar 2017 23:35:08 +0100 Message-ID: <86shmn2y8z.fsf@gaheris.avalon.lan> References: <86mvcv4zyu.fsf@gaheris.avalon.lan> <8660jj4gns.fsf@gaheris.avalon.lan> <86wpbz31ge.fsf@gaheris.avalon.lan> Mime-Version: 1.0 Content-Type: text/plain X-Trace: individual.net wHVDjPxhLbDck6zhWbUhSAPSUSCSeowAFo4uBRVWJz0gjtK4FI X-Orig-Path: gaheris.avalon.lan!not-for-mail Cancel-Lock: sha1:v+2ne3ExYJlQsGCTKQkku1DaSrI= sha1:jShIFKFlxxGxZ/4xDsEXFDkWpx4= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Xref: news.eternal-september.org comp.lang.ada:33505 Date: 2017-03-08T23:35:08+01:00 List-Id: Simon Wright writes: > Mart van de Wege writes: > >> Mart van de Wege writes: >> >>> "Randy Brukardt" writes: >>> >>>> I suspect we'll need to see a more complete example to definitively >>>> say what the problem is. >>>> >>> The full code lives at https://github.com/mvdwege/pendragon >>> >>> Note that some stuff is in incomplete branches, and I still have some >>> locally committed changes that are not in the github repo. The code >>> that was throwing errors among them. >> >> Screw that. Based on my reading of the answers, I am going to delete >> the persons and family_and_relatives branches and sit down and do a >> decent design first. > > I suspect most of us have reached this stage in a project at some point > in our careers! You will feel better afterwards ... I've been working on this off and on for almost a year now, and I have reached that point several times ;) And you're right, I've felt better every time I did that. In fact, just after reading the comments I coded up an implementation that correctly assigns a Father to a Person'Class object, stuffs it in the Parents list, and reads it correctly. So the first steps of the redesign work. Now I'm going to think on how to implement the entire family tree according to the rules. The nice thing about implementing RPG rulesets is that the ruleset itself presents a decent first attempt at a spec ;) Mart -- "We will need a longer wall when the revolution comes." --- AJS, quoting an uncertain source.