From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Discriminant as default initial value
Date: 1997/04/02
Date: 1997-04-02T00:00:00+00:00 [thread overview]
Message-ID: <dewar.859988477@merv> (raw)
In-Reply-To: 199704020043_MC2-13A2-3DDB@compuserve.com
Kees said
<< I know by now how you feel about these things. It is just that this
one intrigued me, because I had not encountered the use of a record
discriminant as the default value for a component before. I spent a couple
of minutes trying it out, found that it seemed to work, and decided that I
could just as well post the reply.>>
Using a discriminant in the expression for a default value is perfectly
valid (it does not have to be on its own, it can be used within an
expression, e.g. you can have a default expression A+B where both A
and B are discriminants). This is legal because there is no rule that
says it is illegal. And it should work properly!
next prev parent reply other threads:[~1997-04-02 0:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-02 0:00 Discriminant as default initial value Kees de Lezenne Coulande
1997-04-02 0:00 ` Robert Dewar [this message]
1997-04-07 0:00 ` Keith Thompson
1997-04-02 0:00 ` Scott Renfro
1997-04-02 0:00 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
1997-03-30 0:00 Kees de Lezenne Coulande
1997-03-30 0:00 ` Robert Dewar
1997-03-29 0:00 Scott Renfro
1997-03-29 0:00 ` Matthew Heaney
1997-03-30 0:00 ` Scott Renfro
1997-03-30 0:00 ` Bob Klungle
1997-03-30 0:00 ` Robert Dewar
1997-03-31 0:00 ` Bob Klungle
1997-03-31 0:00 ` Robert Dewar
1997-03-31 0:00 ` Jon S Anthony
1997-03-31 0:00 ` Robert Dewar
1997-04-02 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox