From: bobduff@world.std.com (Robert A Duff)
Subject: Re: overload ":=" ???
Date: 1996/07/25
Date: 1996-07-25T00:00:00+00:00 [thread overview]
Message-ID: <Dv45E5.MHJ@world.std.com> (raw)
In-Reply-To: 4t7l2p$n41@zdi.informatik.uni-stuttgart.de
In article <4t7l2p$n41@zdi.informatik.uni-stuttgart.de>,
Wolfgang Gellerich <gelleric@kafka.informatik.uni-stuttgart.de> wrote:
>What is the problem with overloading := ?
Unconstrained discriminated records. This problem is explained in
AARM-7.6(17.a - 17.h).
>... In the case discussed here, assigning
>a string literal to an unbounded strng variable, there should be no
>difficulties ?
This case discussed here, actually, would be better addressed by having
user-defined literals, rather than user-defined assignment. Or, it
could be addressed by having user-defined implicit conversion, but that
seems like overkill. Consider that you might want:
procedure P(X: Fancy_Dynamic_String);
...
P("Hello, world.");
whereas Ada requires:
P(To_Fancy_Dynamic_String("Hello, world."));
or:
P(+("Hello, world."));
Assuming, that is, that you buy the premise of the original poster, who
said that `X := To_Fancy_Dynamic_String("Hello, world.");' is too
verbose.
- Bob
next prev parent reply other threads:[~1996-07-25 0:00 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-17 0:00 overload ":=" ??? David Morton
1996-07-17 0:00 ` Robert Dewar
1996-07-18 0:00 ` Laurent Guerby
1996-07-18 0:00 ` David Morton
1996-07-19 0:00 ` David Weller
1996-07-19 0:00 ` Brad Balfour
1996-07-25 0:00 ` Wolfgang Gellerich
1996-07-25 0:00 ` Robert A Duff [this message]
1996-07-18 0:00 ` Jon S Anthony
1996-07-18 0:00 ` John Herro
1996-07-18 0:00 ` Robert Dewar
1996-07-19 0:00 ` John Herro
1996-07-21 0:00 ` Laurent Guerby
1996-07-22 0:00 ` Robert A Duff
1996-07-23 0:00 ` Laurent Guerby
1996-07-23 0:00 ` Robert A Duff
1996-07-23 0:00 ` John Herro
1996-07-21 0:00 ` David Morton
1996-07-22 0:00 ` Laurent Guerby
1996-07-22 0:00 ` Laurent Guerby
1996-07-22 0:00 ` David Morton
1996-07-22 0:00 ` Robert Dewar
1996-07-23 0:00 ` Robert A Duff
1996-07-22 0:00 ` Robert Dewar
1996-07-23 0:00 ` Tarjei Jensen
1996-07-23 0:00 ` Robert A Duff
1996-07-24 0:00 ` Robert I. Eachus
1996-07-19 0:00 ` Joerg Ozimek
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox