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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9a4cc01431944b26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Ada 2005: Attempting to create a useful subject/observer pattern Date: 25 Oct 2006 09:29:44 -0700 Organization: http://groups.google.com Message-ID: <1161793784.616551.121730@m73g2000cwd.googlegroups.com> References: <1161723710.859323.228560@f16g2000cwb.googlegroups.com> NNTP-Posting-Host: 66.162.65.129 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1161793790 11744 127.0.0.1 (25 Oct 2006 16:29:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Oct 2006 16:29:50 +0000 (UTC) In-Reply-To: <1161723710.859323.228560@f16g2000cwb.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=66.162.65.129; posting-account=Zl1UPAwAAADEsUSm1PMMiDjihtBlZUi_ Xref: g2news2.google.com comp.lang.ada:7197 Date: 2006-10-25T09:29:44-07:00 List-Id: Lucretia wrote: > Hi, > > Like the subject states, I'm trying to implement a usable > subject/observer pattern which is an extension of the GoF original and > something closer to Java's Listeners. You can try something I wrote a few years ago: http://www.adapower.com/index.php?Command=Class&ClassID=Patterns&CID=272 http://www.adapower.com/index.php?Command=Class&ClassID=Patterns&CID=273 There are other articles on that page: http://www.adapower.com/index.php?Command=Class&ClassID=Patterns&Title=Patterns I haven't updated these for Ada05, but I assume adapting it to use the new interface types wouldn't be too difficult. -Matt