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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c89924cb7c8c5a42 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-13 06:14:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-033-087.arcor-ip.NET!not-for-mail From: Dmitry A.Kazakov Newsgroups: comp.lang.ada Subject: Re: Who said strong typing is a benefit? Date: Mon, 14 Oct 2002 03:21:54 +0200 Message-ID: References: <8db3d6c8.0210121718.25cf55e4@posting.google.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-033-087.arcor-ip.net (145.254.33.87) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1034514842 21912755 145.254.33.87 (16 [77047]) User-Agent: KNode/0.4 Xref: archiver1.google.com comp.lang.ada:29741 Date: 2002-10-14T03:21:54+02:00 List-Id: steve_H wrote: > I wish there was a 'matlab like' environment based on an Ada like > language. I think it is still possible to get Ada 83 code from MatLab [if MathWorks did not cancelled this feature]. > "MATLAB Type Handling > An important benefit of MATLAB is that users do not have > to declare variables to be of certain data types, as is required > with 3GLs. In MATLAB, any variable can be assigned a > value of any type, and that type can be changed implicitly > at will because of an assignment to a new value of a different > type.As a result, the MATLAB interpreter is prepared to > deal with the most complicated data types (such as an ndimensional > array of complex doubles) and is capable of > performing operations no matter what the actual data > types turn out to be at run-time" All this can be easily achived in Ada. Just derive all your types from the same tagged base and use smart pointers to the objects. The reverse cannot be achived. I.e. with MatLab one cannot develop systems of same scale, maintainability, performance and safety as one could do in Ada. -- Regards, Dmitry Kazakov www.dmitry-kazakov.de