comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: newbie - OOP in Ada Set and Get Methods
Date: Tue, 28 Dec 2004 21:17:39 +0000 (UTC)
Date: 2004-12-28T21:17:39+00:00	[thread overview]
Message-ID: <cqsihj$9uu$1@titan.btinternet.com> (raw)
In-Reply-To: <1104255406.015130.138150@z14g2000cwz.googlegroups.com>

R wrote:
> because all OOP languages uses references to pass the objects as
> parameters...

Oh dear, no...

That's a might big assumption that 'all OOP languages' use references to 
pass objects - that's how it's implemented but there is (usually) no 
need in Ada for the programmer to get their hands dirty with such low 
level details!

Tagged types are guaranteed to be passed by reference (the cost of the 
tag alone makes this the obvious mechanism) and for other types the RM 
either dictates how it is done or lets the compiler select what's best. :-)

Cheers

-- Martin



  parent reply	other threads:[~2004-12-28 21:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28 12:41 newbie - OOP in Ada Set and Get Methods R
2004-12-28 13:36 ` Jeff C r e e.m
2004-12-28 16:26   ` R
2004-12-28 17:01     ` Jeff C r e e.m
2004-12-28 17:30       ` R
2004-12-28 17:20     ` Martin Dowie
2004-12-28 17:36       ` R
2004-12-28 19:47         ` Mark Lorenzen
2004-12-28 19:48         ` Adrien Plisson
2004-12-28 19:58         ` Georg Bauhaus
2004-12-28 21:17         ` Martin Dowie [this message]
2004-12-29 10:06           ` R
2004-12-29 12:33             ` Martin Dowie
2004-12-29 17:35             ` Georg Bauhaus
2004-12-29 19:12             ` Martin Krischik
2004-12-30 12:14               ` Georg Bauhaus
2004-12-29 19:11         ` Martin Krischik
2004-12-28 13:39 ` Martin Krischik
replies disabled

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