comp.lang.ada
 help / color / mirror / Atom feed
From: Dmitry A.Kazakov <mailbox@dmitry-kazakov.de>
Subject: Re: Who said strong typing is a benefit?
Date: Mon, 14 Oct 2002 03:21:54 +0200
Date: 2002-10-14T03:21:54+02:00	[thread overview]
Message-ID: <aobrip$ksn5j$1@ID-77047.news.dfncis.de> (raw)
In-Reply-To: 8db3d6c8.0210121718.25cf55e4@posting.google.com

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



  parent reply	other threads:[~2002-10-14  1:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-13  1:18 Who said strong typing is a benefit? steve_H
2002-10-13  2:53 ` Jim Rogers
2002-10-13 18:27   ` Jeffrey Carter
2002-10-13  3:24 ` Richard Riehle
2002-10-13  7:10 ` tmoran
2002-10-13 13:00   ` Jim Rogers
2002-10-13 13:30     ` Florian Weimer
2002-10-13 17:28       ` Michael Bode
2002-10-13 22:07         ` Florian Weimer
2002-10-13 19:53       ` steve_H
2002-10-13 19:31     ` steve_H
2002-10-13 15:33   ` steve_H
2002-10-13 17:14 ` Larry Kilgallen
2002-10-14  1:21 ` Dmitry A.Kazakov [this message]
2002-10-13 19:42   ` steve_H
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox