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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:6e0a:: with SMTP id d10mr1868873ioh.24.1555146864378; Sat, 13 Apr 2019 02:14:24 -0700 (PDT) X-Received: by 2002:a05:6830:12d2:: with SMTP id a18mr40141024otq.156.1555146863997; Sat, 13 Apr 2019 02:14:23 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!136no201170itk.0!news-out.google.com!w17ni243itb.0!nntp.google.com!b2no202318itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 13 Apr 2019 02:14:23 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 References: <322de0e0-9b7c-478f-be70-4d0f88c74d6d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <741d4e6d-87b8-4716-bef7-eed2286b5a36@googlegroups.com> Subject: Re: Why can't objects be static in Ada? From: Lucretia Injection-Date: Sat, 13 Apr 2019 09:14:24 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56126 Date: 2019-04-13T02:14:23-07:00 List-Id: On Friday, 12 April 2019 23:38:42 UTC+1, Randy Brukardt wrote: > "Lucretia" <> wrote in message > Since you never showed the code that was getting the error message, I don't > know if the problem is one the language could help with or not. But there > aren't many places in the language where "static" is required. One issue is that the line on https://github.com/Lucretia/sdlada/blob/master/src/sdl-video-palettes.ads#L105 Was "Default_Terminator => Null_Colour" before the pragma preelaborate. The entire commit was https://github.com/Lucretia/sdlada/commit/8ee63fd60deeb95f14d9c2b0eeb49d5199bd6c91