Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: Ada OOP alt...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 27 of 35 Topic 5813 of 5881
Post > Topic >>

Re: Ada OOP alternatives?

by "Dmitry A. Kazakov" <mailbox@[EMAIL PROTECTED] > Jul 24, 2008 at 02:48 PM

On Thu, 24 Jul 2008 12:20:07 +0200, Georg Bauhaus wrote:

> Dmitry A. Kazakov wrote:

>>>> then in 80s, but it is no any problem now. IDEs do it better.
>>> Ada IDEs cannot affect semantics?
>> 
>> I am not sure what you mean... GPS does affect the semantics when you
>> change some project options.
> 
> I meant the semantics of child packages and separate units
> as given in the program text.

I lost your point. Can you elaborate it a bit more?

Just to remember, mine was that separate bodies were often used to
structure the source code in order to make it more maintainable and
readable. IDEs and tools are better suited for that. Another use I can
recollect was stubs [in top-down structured programming]. Unfortunately it
never really worked. Today we are using abstract primitive operations
instead.

>>> But suppose your implementation includes one subprogram,
>>>   procedure A(... : T; ...);
>>> that provides for one aspect of the solution made with T.
>>> If that one aspect depends on packages P3 and P4, but A is the
>>> only supbrogram in your package that depends on P3 or P4,
>>> why create another child just for this one aspect?
>> 
>> Which is exactly the problem. "Just one aspect" is an improper way of
>> problem decomposition.
> 
> Why, e.g., build an entire type when a single procedure
> is sufficient, and will be sufficient in the future?

How can you know that?

> It is possible to think of a procedure (or function etc.) as an
> abstract state machine.

Hmm, it is almost impossible.

Procedures describe transitions between states encapsulated by the
parameters and the results of (only the latter in pure functional
languages).

> Many languages have a function type
> built in, functions are objects.

But not in the sense of a stateful object of OO. They are language objects
(a completely unrelated thing, except that in an OOPL a stateful object is
a language object.).

>> 3. The "aspects" available for "separation" are often low level. Your
>> example nicely illustrates this point. It is a pure low-level
procedural
>> decomposition.
> 
> OK but this shows very little. Without a procedure (as in "procedural
> decomposition"), a program does nothing. Should every procedure
> be a primitive operation?

Yep, very much so.

> This question is IMO worth asking
> when the task at hand is not "the general theory of problem
> decomposition using ADTs" but "how to write this specific program".

I was always wondering people saying such things. Yes, you can drive the
wrong side of the road so long there is no police officer watching you.

> There is a trade-off:

Really?

> Another ADT child package could become more
> general but introduces complexity. Artificial complexity as,
> I'm sure, some will say.

Well, well, Ada is complex, C is good. Why do you need that artificial
complexity. Everything is void * etc...

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




 35 Posts in Topic:
Ada OOP alternatives?
raould <raould@[EMAIL   2008-07-15 13:38:41 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-15 20:15:05 
Re: Ada OOP alternatives?
Georg Bauhaus <rm.tsoh  2008-07-16 08:33:25 
Re: Ada OOP alternatives?
"Alex R. Mosteo"  2008-07-16 11:54:52 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-16 15:03:18 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-16 10:07:43 
Re: Ada OOP alternatives?
"(see below)" &  2008-07-16 19:11:10 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-16 20:05:02 
Re: Ada OOP alternatives?
"(see below)" &  2008-07-17 01:43:51 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-16 21:36:28 
Re: Ada OOP alternatives?
"(see below)" &  2008-07-17 12:07:55 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-17 12:45:09 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-17 14:00:38 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-17 12:50:31 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-17 20:56:44 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-18 08:54:54 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-18 15:36:28 
Re: Ada OOP alternatives?
"Randy Brukardt"  2008-07-17 18:27:03 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-18 08:45:20 
Re: Ada OOP alternatives?
"Randy Brukardt"  2008-07-18 18:22:18 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-16 10:03:15 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-16 16:29:26 
Re: Ada OOP alternatives?
Adam Beneschan <adam@[  2008-07-22 13:32:20 
Re: Ada OOP alternatives?
"Randy Brukardt"  2008-07-22 18:35:40 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-23 09:56:00 
Re: Ada OOP alternatives?
Robert A Duff <bobduff  2008-07-23 17:04:03 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-24 14:48:02 
Re: Ada OOP alternatives?
Georg Bauhaus <rm.tsoh  2008-07-25 10:47:49 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-25 19:55:46 
Re: Ada OOP alternatives?
"Dmitry A. Kazakov&q  2008-07-25 15:28:33 
Re: Ada OOP alternatives?
Georg Bauhaus <rm.dash  2008-07-25 18:24:26 
Re: Ada OOP alternatives?
Ludovic Brenta <ludovi  2008-07-23 00:18:00 
Re: Ada OOP alternatives?
"Alex R. Mosteo"  2008-07-23 11:25:30 
Re: Ada OOP alternatives?
stefan-lucks@[EMAIL PROTE  2008-07-24 09:07:10 
Re: Ada OOP alternatives?
Jeff Koftinoff <jeff.k  2008-07-25 22:05:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:35:11 CDT 2008.