comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Object-Oriented style question
Date: Wed, 08 Feb 2012 13:39:31 +0100
Date: 2012-02-08T13:39:31+01:00	[thread overview]
Message-ID: <op.v9c1f5d7ule2fv@douda-yannick> (raw)
In-Reply-To: 4f098fcb$0$6577$9b4e6d93@newsspool3.arcor-online.net

Le Sun, 08 Jan 2012 13:45:00 +0100, Georg Bauhaus  
<rm-host.bauhaus@maps.futureapps.de> a écrit:

> First question: Will it be preferable if those introducing O-O
> in Ada use a (virtual) rubber eraser and clean up introductions
> by removing unneeded (and in some cases dangerous) "access" from
> declarations of O-O primitive operations?

If you talk about student, there will soon learn about unneeded access,  
and will want to go with it if their background suggest it.

> Second question: Technically, will it be advisable to work on
> "access-free" bindings to O-O libraries because the Ada language
> makes O-O types be by-reference as is?  Or on facilitating these
> with the help of a compiler matching by-reference  mechanics of
> foreign languages?

If by “compiler” you mean “Ada compiler” (or else what?), this would be an  
error I believe. Ada's interface to C was first defined to use access type  
where C did not. This was confusing and had to be fixed.

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



      parent reply	other threads:[~2012-02-08 12:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 12:45 Object-Oriented style question Georg Bauhaus
2012-01-08 12:52 ` Simon Wright
2012-01-08 13:25   ` Dmitry A. Kazakov
2012-01-08 14:18 ` Robert A Duff
2012-01-08 20:32   ` Martin Dowie
2012-01-08 20:52     ` Robert A Duff
2012-01-09 22:34   ` Adam Beneschan
2012-01-09 23:21     ` Robert A Duff
2012-01-10  8:34     ` Dmitry A. Kazakov
2012-01-09  8:55 ` Maciej Sobczak
2012-01-09 23:58   ` Georg Bauhaus
2012-01-10  8:47     ` Maciej Sobczak
2012-01-10 10:27       ` Dmitry A. Kazakov
2012-01-10 12:27       ` Georg Bauhaus
2012-01-11  8:54         ` Maciej Sobczak
2012-01-10 21:26       ` Randy Brukardt
2012-02-08 12:23 ` Yannick Duchêne (Hibou57)
2012-02-08 12:39 ` Yannick Duchêne (Hibou57) [this message]
replies disabled

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