comp.lang.ada
 help / color / mirror / Atom feed
From: george.priv@gmail.com
Subject: Re: How to return an empty aggregate
Date: Fri, 4 Apr 2008 08:38:52 -0700 (PDT)
Date: 2008-04-04T08:38:52-07:00	[thread overview]
Message-ID: <2c23eecd-d5bf-4320-b0cd-a45b584ddfe3@m36g2000hse.googlegroups.com> (raw)
In-Reply-To: 945217e8-ec37-4a33-9847-28e8e7d55798@59g2000hsb.googlegroups.com

On Apr 3, 5:09 am, Maciej Sobczak <see.my.homep...@gmail.com> wrote:
> On 3 Kwi, 07:02, george.p...@gmail.com wrote:
>
> > Sorry, maybe I am missing something but what's practical sense of
> > having non-abstract null record implementation of interface(s)?
>
> Stateless strategy patterns?
> Factories?
> Finite state machines (no need for state within state)?
>
> Actually, most of the design patterns I can think of make sense in
> some stateless form, because the concrete *type* of the object is
> often enough to play the role of a state at some higher level.
>

Maybe I put my question incorrectly.  I did not mean challenge those
concepts in purity.  Good example is a factory.  Should it have a
mechanism to register-unregister itself?  Would it imply either
deriving from something like Finalization.Controlled or the other
root, or putting some meat into the object itself?  In addition such
objects make sense in singleton form and likely involve some sort of
guarding mutexes or be implemented as protected or tasks.  BTW in C++
empty factory class will be fine due to implied constructor/
destructor.

> Interfaces are more about operations than about data.
>
> --
> Maciej Sobczak *www.msobczak.com*www.inspirel.com




  reply	other threads:[~2008-04-04 15:38 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01 11:58 How to return an empty aggregate Maciej Sobczak
2008-04-01 12:54 ` Anh Vo
2008-04-01 17:18   ` Adam Beneschan
2008-04-02  7:16     ` Maciej Sobczak
2008-04-01 13:34 ` Dmitry A. Kazakov
2008-04-01 15:00 ` Robert A Duff
2008-04-02  7:19   ` Maciej Sobczak
2008-04-03  5:02     ` george.priv
2008-04-03  9:09       ` Maciej Sobczak
2008-04-04 15:38         ` george.priv [this message]
2008-04-04 20:35           ` Maciej Sobczak
2008-04-04 23:58             ` george.priv
2008-04-05 13:48               ` Maciej Sobczak
2008-04-05 16:04                 ` george.priv
2008-04-05 21:14                   ` Maciej Sobczak
2008-04-05 22:36                     ` george.priv
2008-04-06 19:53                       ` Maciej Sobczak
2008-04-06  7:00                     ` george.priv
2008-04-06 20:04                       ` Maciej Sobczak
2008-04-07 20:23                         ` george.priv
replies disabled

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