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,34f025b47dbcfaff,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-23 00:45:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newscore.univie.ac.at!aconews-feed.univie.ac.at!news.tu-graz.ac.at!news.kfunigraz.ac.at!not-for-mail From: Siegfried Gonzi Newsgroups: comp.lang.ada Subject: Re: Make_Array (was: Ada communicating with other programs) Date: Fri, 23 Nov 2001 09:37:18 +0100 Organization: Universitaet Graz Message-ID: <3BFE0ABE.D0E87978@kfunigraz.ac.at> References: NNTP-Posting-Host: igam08av.kfunigraz.ac.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: jerry.kfunigraz.ac.at 1006504884 4114 143.50.39.35 (23 Nov 2001 08:41:24 GMT) X-Complaints-To: usenet@news.kfunigraz.ac.at NNTP-Posting-Date: 23 Nov 2001 08:41:24 GMT X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:16896 Date: 2001-11-23T08:41:24+00:00 List-Id: "M. A. Alves" wrote: > Siegfried, here is the "tutorial" as I promised. > > Preben, note the thing is 100-lines long even without using Spitbol... > nor Regex ;-) > > Anyone, remember to notify me if you start using Unbounded_Arrays a lot. > Thanks. Thank you very much, I will have a closer look at it. It seems that the Ada version is not any longer as an equivalent Clean version, because you also has got included generic-types. My Clean version only deals with double-precision floating point types. There are a few problems which makes Clean often not very useable: a) You cannot print variables as an intermediate result (functional programming: one starting point and only one ending-point) b) You only have two types of numbers at your disposal: integer (32bit) and floating-points (64bit) c) There is no possibility to to round an number in Clean to any precision (integer is integer and double is double) even when one writes to files. For formatted output is this behaviour nearly unuseable (okay, I have a second-hand library written in Clean for formatted output but it is not as perfect as one would expect with a native solution). As I have seen it with Ada83 (on the Mac) there is a nice feature where you can define a type which maps the precision to a specific grid-resolution. That is exactly what I currently implement in Clean for a 2 dimensional Kriging-interpolation with Aerosol-datas. Regards, S. Gonzi