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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a5f77772dc1375a3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-23 03:11:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!kibo.news.demon.net!demon!shale.ftech.net!news.ftech.net!peernews.cix.co.uk!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail From: "martin.m.dowie" Newsgroups: comp.lang.ada References: <3CEB7124.4050604@blancolioni.org> <01HW.B91197820000C3D90E449050@netnews.netaxs.com> <3CECB651.3010209@blancolioni.org> Subject: Re: Safe Units Handling in Ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 23 May 2002 11:03:46 +0100 NNTP-Posting-Host: 62.252.149.135 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1022148687 62.252.149.135 (Thu, 23 May 2002 11:11:27 BST) NNTP-Posting-Date: Thu, 23 May 2002 11:11:27 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:24571 Date: 2002-05-23T11:03:46+01:00 List-Id: "Fraser" wrote in message news:3CECB651.3010209@blancolioni.org... [snip] > Good idea. Even better, a one liner. It's added, and if you don't want > to wait, you can add in the procedure Write_Unit after line 83 of the > file macks-writers.adb in version 0.0.2 the following line: > > Write_Function (Macks.Table.Divide, Name, Name, "Float_Type"); Wouldn't a better (by this I mean more readable/understandable) solution be to derive a new 'Unitless' (or 'Dimensionless') type from 'Float_Type'? Also, can't there just be a single "pragma Inline"? i.e. "pragma Inline ("*", "/");" at the bottom of the file - doesn't this cover all the overloaded operators prior to this single pragma? Cracking effort all the same! :-)