comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: Simple Components (Generic_Directed_Graph)
Date: Mon, 30 Oct 2017 13:04:14 +0200
Date: 2017-10-30T13:04:14+02:00	[thread overview]
Message-ID: <ot70ve$1qjp$1@gioia.aioe.org> (raw)
In-Reply-To: ot6vlg$1o05$1@gioia.aioe.org

Victor Porton wrote:

> Dear Dmitry,
> 
> I do not understand your logic in Generic_Directed_Graph:
> 
> The procedures like
> 
> procedure Disconnect (Parent : Node; Child : Node);
> 
> do not take "Graph" argument.
> 
> Does it mean that there exists just one graph (per instantiation)?
> 
> This looks wrong for me. First it is using global variables.
> 
> Please explain your logic.

It is in principle possible to represent an object as an internal state of a 
package. But this isn't the intended usage. And actually it is not suitable 
in some situations, such as dynamic memory allocation or an array of graphs.

So why did you do this? Shouldn't you rethink your design?

-- 
Victor Porton - http://portonvictor.org


  reply	other threads:[~2017-10-30 11:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30 10:41 Simple Components (Generic_Directed_Graph) Victor Porton
2017-10-30 11:04 ` Victor Porton [this message]
2017-10-30 11:34   ` Dmitry A. Kazakov
2017-10-30 11:23 ` Dmitry A. Kazakov
2017-10-30 14:58   ` Victor Porton
2017-10-30 15:46     ` Dmitry A. Kazakov
2017-10-30 17:46       ` Dennis Lee Bieber
2017-10-30 20:29         ` Dmitry A. Kazakov
2017-10-30 15:13   ` Victor Porton
2017-10-30 15:54     ` Dmitry A. Kazakov
2017-10-30 18:30   ` Victor Porton
2017-10-30 20:43     ` Dmitry A. Kazakov
2017-10-30 21:20       ` Victor Porton
2017-10-30 22:39         ` Dmitry A. Kazakov
2017-10-31  7:36           ` Simon Wright
2017-10-31  8:16             ` Dmitry A. Kazakov
2017-10-31 11:12           ` Victor Porton
2017-10-31 12:42             ` Dmitry A. Kazakov
2017-10-31 15:07               ` Victor Porton
2017-10-31 15:48                 ` Dmitry A. Kazakov
replies disabled

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