comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@ada.eu.org>
To: jsa@alexandria (Jon S Anthony)
Subject: Re: Ada/Java
Date: 1997/04/23
Date: 1997-04-23T00:00:00+00:00	[thread overview]
Message-ID: <qw69129gand.fsf@esmeralda.enst.fr> (raw)
In-Reply-To: JSA.97Apr22163404@alexandria



>>>>> "Jon" == Jon S Anthony <jsa@alexandria> writes:

Jon> In article <335CDAF1.178A@bix.com> Tom Moran <tmoran@bix.com>
Jon> writes:

>> Must each record be a class?  Not all Ada records are tagged types.

Jon> Java does not support any other kind of first class object which
Jon> has structure.  So, yeah, this (currently) must be...

Well, not exactly. You can always choose to group several Ada records
into one Java class if your goal is to minimize the number of class
files, and then use one part of the class or the other. You can even
use overlapping if you have fields of the same type in several
records.

Note that this approach works well only with non-tagged records since
these Java classes will be deriving from java.lang.Object, it would be
more difficult with tagged records since you don't want to loose the
virtual dispatching capabilities.

  Sam
-- 
Samuel Tardieu -- sam@ada.eu.org




  parent reply	other threads:[~1997-04-23  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-16  0:00 Ada/Java tmoran
1997-04-20  0:00 ` Ada/Java Tucker Taft
1997-04-21  0:00   ` Ada/Java Tom Moran
1997-04-22  0:00 ` Ada/Java David Wheeler
1997-04-22  0:00   ` Ada/Java Tom Moran
1997-04-22  0:00     ` Ada/Java Jon S Anthony
1997-04-23  0:00       ` Ada/Java Tom Moran
1997-04-25  0:00         ` Ada/Java Jon S Anthony
1997-04-23  0:00       ` Samuel Tardieu [this message]
1997-04-24  0:00         ` Ada/Java Jon S Anthony
  -- strict thread matches above, loose matches on Subject: below --
1997-04-25  0:00 Ada/Java tmoran
1997-04-27  0:00 ` Ada/Java Robert Dewar
1997-04-28  0:00   ` Ada/Java Tom Moran
1997-04-28  0:00     ` Ada/Java Robert Dewar
replies disabled

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