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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ANN: Introducing AdaBase - Thick database bindings for Ada Date: Tue, 24 May 2016 16:27:31 +0100 Organization: A noiseless patient Spider Message-ID: References: <6784b2fe-96cf-46cb-b3a6-00a0e2f2bf16@googlegroups.com> <906d946c-b8a4-484b-864f-06ff2dfd8abc@googlegroups.com> <5ef1bb51-2006-4069-a969-77fdfe5012cd@googlegroups.com> <5544d461-54c7-46aa-9f00-0e25035329db@googlegroups.com> <45a79c44-754f-447f-91d1-b69778dbeaa1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="fa27e9c62dd412c1b6adffaac11b940a"; logging-data="19741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PEg4I7d6TgYVe8AZfXU5l9iWdJkWInVM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:5Q+pfVY9BBUKMxPQniIw3OoC8Ws= sha1:2yQ/3e/kljlwdPnZ1/ecB8oV1iw= Xref: news.eternal-september.org comp.lang.ada:30475 Date: 2016-05-24T16:27:31+01:00 List-Id: jrmarino writes: > On Tuesday, May 24, 2016 at 12:03:37 AM UTC+2, Martin wrote: >> Indeed, but the original API didn't follow the common style, that >> was my point. And it's very easy to configure GNAT to check your >> coding style. >> > > I have (and alway had) virtually every style switch set on. You've > mentioned GNAT twice, but I don't see that as having played any role > here. Gnat doesn't balk on CamelCase or suffixed enumeration type > elements under any setting I'm aware of. I see keyword casing, but > not identifier casing switches. In GPS, under Edit > Preferences > Editor > Ada, there are Casing policy - when to automatically adjust case, I have On_The_Fly. Reserved word casing - I have Lower. Identifier casing - I have Smart_Mixed, I think this means Title_Case, leaving alone any explicitly upper-case letters (e.g. CamelCase). Under Project > Properties > Switches > Ada > Style checks, there are a couple of relevant switches, the most important of which is 'Check references' (-gnatyr), All identifier references must be cased in the same way as the corresponding declaration.