comp.lang.ada
 help / color / mirror / Atom feed
From: jb@rti-sel.UUCP (Jeff Bartlett)
Subject: Re: Fortran/Ada
Date: Tue, 27-May-86 23:10:11 EDT	[thread overview]
Date: Tue May 27 23:10:11 1986
Message-ID: <833@rti-sel.UUCP> (raw)
In-Reply-To: 8605211948.AA00588@ucbvax.Berkeley.EDU

Some of the gotcha's I found in Xlating 'tran --> Ada were:
1.	a subroutine that wrote N elements of an array to an unformatted file.

	Of course, the array, N, and the logical unit number were parameters.

	And the actual parameters were arrays of almost anything, including
	the first elements of common blocks (yes, they wrote the whole block).
	(BTW, there was a matching read subroutine).

2.	Passing a slice of a multi-dim array to subroutines.
		(row-major vs column major).

3.	Run-time generated format lists. (nasty, but legal)

4.	Jumping out of case statements with GOTOs.  Can't with Ada.

5.	Equivalaces.  (arrays mapped into matrices, RM vs CM again).

6.	Of course, there is no compiler checks for parameter type or number.

7.	Statement operator precedence.

I think mechanical translation is difficult, but do-able.  It would
require the global 'view' of things.

Jeff Bartlett
Center for Digital Systems Research
Research Triangle Institute              rti-sel!jb@mcnc

  reply	other threads:[~1986-05-28  3:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-05-21 17:57 Fortran/Ada SERAFINI%FAE
1986-05-28  3:10 ` Jeff Bartlett [this message]
1986-06-02 19:08   ` Fortran/Ada John B. Goodenough
1986-06-20 14:55   ` Fortran/Ada stt
1986-06-22  1:39     ` Fortran/Ada Kenneth Ng
replies disabled

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