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,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a5e:9208:: with SMTP id y8-v6mr7977501iop.70.1532509390229; Wed, 25 Jul 2018 02:03:10 -0700 (PDT) X-Received: by 2002:aca:4787:: with SMTP id u129-v6mr77695oia.4.1532509389798; Wed, 25 Jul 2018 02:03:09 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!g2-v6no1736717itf.0!news-out.google.com!k71-v6ni2173itk.0!nntp.google.com!d7-v6no1786850itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 25 Jul 2018 02:03:09 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.98.77.125; posting-account=L3mulQoAAADsXVjCD5rM6Ap3Xy0U3ckB NNTP-Posting-Host: 194.98.77.125 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: bbc:microbit and buttons and No_Implicit_Dynamic_Code From: fabien.chouteau@gmail.com Injection-Date: Wed, 25 Jul 2018 09:03:10 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53958 Date: 2018-07-25T02:03:09-07:00 List-Id: Hi Bj=C3=B6rn, I'm Fabien and I work for AdaCore, in particular I was involved in the supp= ort of the micro:bit. On Wednesday, July 25, 2018 at 9:32:22 AM UTC+2, bj=C3=B6rn lundin wrote: > To my surprise - it just worked :-) Thanks for the feedback, that was our goal :) > 1 - gpr and style. Why does the setting in the gpr file > insist on a certain style, and treat everything else as error. > Selecting all + tab does not pretty print in a way that the gpr file > wants. Someone new to Ada would have a real hard time to get anything > done. (Yes I did remove the gnaty but it should be so by default) >=20 This is to enforce the coding style of the library. I agree that this is no= t very friendly for beginners. I will try to find a solution.=20 I opened a issue on github for this: https://github.com/AdaCore/Ada_Drivers= _Library/issues/271 > 2 - Debugging. How do I do it? I've almost never used the debugger, > not via GPS nor via GDB. Is there a guide somewhere how to use it > via GPS? (Put_Lines have been my friend, thinking of taking > advantage of the GPS) We could have a debugging example. > 3 - The microbit has 2 buttons. And the microbit.Button package has a > way of subscribing callbacks to pressed/released events. > But trying to use it I get >=20 > main.adb:55:33: violation of restriction "No_Implicit_Dynamic_Code" at > system.ads:45 I was not aware of this problem, can you please open an issue on GitHub for= this? https://github.com/AdaCore/Ada_Drivers_Library/issues Regards,