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-Thread: a07f3367d7,5d6e2ad0b6f4137a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!gegeweb.org!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: This MIDI stuff, would someone be interested in reviewing my code? Date: Mon, 08 Mar 2010 12:30:19 +0000 Organization: Aioe.org NNTP Server Message-ID: <8br9p512t856figp7g41ktr6kgib28nqvd@4ax.com> References: NNTP-Posting-Host: RXEkuaSUwmKe0XIGFYSK7A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 2.0/32.652 Xref: g2news1.google.com comp.lang.ada:9468 Date: 2010-03-08T12:30:19+00:00 List-Id: On Mon, 8 Mar 2010 03:52:04 -0800 (PST), Gautier write-only wrote: >Probably the most urgent thing is to make a package called MIDI, in >the body of which you hide all the Win32 / C things. >More precisely: >- hide the Win32 references >- use the C strings only in midi.adb >- define constants, when possible, enumerated types which match >Win32's >Otherwise your code will grow into something very, very messy (check >AdaGIDE's sources as the example of what to be avoided). Oh - of course. Those things would be the next step. This is just a little noddy thing to get an idea of how to use it. For what it's worth though, I've already got loads of examples of what should be avoided :-}