comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: array of string
Date: Sat, 4 Oct 2014 17:20:20 +0200
Date: 2014-10-04T17:20:20+02:00	[thread overview]
Message-ID: <316d9x005gmc.5g7tfuqkgxab.dlg@40tude.net> (raw)
In-Reply-To: 01611b4d-fe59-433c-ba6c-3ee75f8a3e26@googlegroups.com

On Sat, 4 Oct 2014 07:15:43 -0700 (PDT), AdaMagica wrote:

> On Saturday, October 4, 2014 10:32:44 AM UTC+2, Dmitry A. Kazakov wrote:
>> this case either. Assignment is not an operation in Ada.
> 
> Just being picky on nomenclature: There is an *assignment statement* in
> Ada, a part of that is the *assignment operation*.
> 
> What you mean, is: Assignment is not an *operator* in Ada.

Not quite.

Though, I prefer "operator" to mean a lexical element of an expression
(e.g. +) and "operation" to mean a subprogram taking the type as an
argument or result (e.g. a primitive operation).

So, yes assignment is not an operator, but I don't want it to be one. I
don't want assignments to appear in expressions, as I didn't want
if-then-else in expressions introduced recently. Both are abomination to
me.

But I want the part of assignment statement you call operation to be a
proper one, primitive for all involved types and overriddable. Randy used
to say that this were impossible due to discriminants, that is IMO untrue.
The real trouble with assignment is multiple dispatch.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2014-10-04 15:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 23:29 array of string Stribor40
2014-10-04  0:50 ` Jerry
2014-10-04  1:07   ` Brad Moore
2014-10-04  1:19   ` Stribor40
2014-10-04  1:29     ` Stribor40
2014-10-04  2:01       ` Stribor40
2014-10-04  7:14       ` Simon Wright
2014-10-04  8:32       ` Dmitry A. Kazakov
2014-10-04 14:15         ` AdaMagica
2014-10-04 15:20           ` Dmitry A. Kazakov [this message]
2014-10-06 16:58             ` Adam Beneschan
2014-10-04  3:09     ` Shark8
2014-10-04  5:33     ` Brad Moore
2014-10-07  1:06 ` brbarkstrom
2014-10-07 16:06   ` Use of bounded strings? (Was: array of string) Jacob Sparre Andersen
2014-10-07  2:08 ` array of string Jerry
2014-10-07 16:49 ` brbarkstrom
replies disabled

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