comp.lang.ada
 help / color / mirror / Atom feed
* (Second try) Query: other ways to implement encapsulated objects
@ 1987-03-27  7:01 larry
  0 siblings, 0 replies; only message in thread
From: larry @ 1987-03-27  7:01 UTC (permalink / raw)


> Could you please send posts about C++ [to C++ groups] ...
Quite right; long msgs on other languages should go elsewhere.  But it is 
proper to point out that some of the most important features of Ada--those 
supporting SW engineering--are being added to other languages used for 
production (not experimental) programming.  The proposed ForTran 88 includes 
several additions that could have been inspired by Ada.
             ----------------------------------------
I've been wondering how many different ways in Ada there are to implement 
encapsulated objects.  One alternative to the "standard" way is use records
containing tasks or (if the Ada standard is extended) subprograms: 

	type BOATS is record
		COLOR: ... ;
		LATITUDE: ... ;
		LONGITUDE: ... ;
		DIRECTION: ... ;
		Drive: Task_type_Move;
		Paint: Subprogram_type_Color;
	end record;

	BOAT: array (MINE..YOURS) of BOATS;

	begin		--All BOATS are launched when tasks are activated?

	--Does each reference to data items BOAT( MINE ) through BOAT( YOURS ) 
	--also perform an action?

Are there any benefits of this approach that would outweigh the problems? 

                                   Larry @ jpl-vlsi.arpa

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1987-03-27  7:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-03-27  7:01 (Second try) Query: other ways to implement encapsulated objects larry

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