comp.lang.ada
 help / color / mirror / Atom feed
From: tedennison@my-dejanews.com
Subject: Re: Help - Constructors - ASAP.
Date: 1998/08/03
Date: 1998-08-03T00:00:00+00:00	[thread overview]
Message-ID: <6q4d38$t7p$1@nnrp1.dejanews.com> (raw)
In-Reply-To: dewar.901945397@merv

In article <dewar.901945397@merv>,
  dewar@merv.cs.nyu.edu (Robert Dewar) wrote:
> Robert Eachus says
>
> <<    There are two reasons for following the advice.  First is that Ada
> has a rule that inherited functions with a controlling result are
> abstract, so they must be overridden.  Yes, there are cases where
> constructor functions can be safely inherited from the parent, but
> this rule makes you think it through. Second is that when you do want
> a constructor which can return any type in the class, the right thing
> to do usually is to make it a classwide type.
> >>
>
> Well, the cases where safe inheritance would be feasible are limited to
> extensions of the type with no additional fields, not very useful!

..or with only defaulted fields, or fields where sensible defaults exist. But
yes, I'm beginning to see the light here.

T.E.D.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




  parent reply	other threads:[~1998-08-03  0:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-23  0:00 Help - Constructors - ASAP Maxim Senin
1998-07-26  0:00 ` Matthew Heaney
1998-07-27  0:00   ` dennison
1998-07-30  0:00     ` Robert I. Eachus
1998-07-30  0:00       ` tedennison
1998-07-31  0:00         ` Matthew Heaney
1998-07-31  0:00         ` Mats Weber
1998-07-31  0:00           ` dennison
1998-08-01  0:00             ` Robert Dewar
1998-08-01  0:00               ` Matthew Heaney
1998-08-01  0:00             ` Matthew Heaney
1998-08-03  0:00             ` Mats Weber
1998-07-31  0:00           ` Robert I. Eachus
1998-08-01  0:00             ` Matthew Heaney
1998-08-01  0:00       ` Robert Dewar
1998-08-01  0:00         ` Matthew Heaney
1998-08-03  0:00           ` Mats Weber
1998-08-03  0:00             ` Matthew Heaney
1998-08-03  0:00               ` Mats Weber
1998-08-04  0:00                 ` Matthew Heaney
1998-08-04  0:00                   ` Mats Weber
1998-08-05  0:00                     ` Matthew Heaney
1998-08-10  0:00           ` Robert I. Eachus
1998-08-03  0:00         ` tedennison [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-07-15  0:00 Maxim Senin
1998-07-16  0:00 ` Stephen Leake
replies disabled

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