From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9fb64e4c58f1fe X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: overload ":=" ??? Date: 1996/07/25 Message-ID: #1/1 X-Deja-AN: 170530613 references: <31ED3F5F.1135B4EA@jinx.sckans.edu> <4t7l2p$n41@zdi.informatik.uni-stuttgart.de> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-07-25T00:00:00+00:00 List-Id: In article <4t7l2p$n41@zdi.informatik.uni-stuttgart.de>, Wolfgang Gellerich 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