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,54aae3da1cf935cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Ada Singleton Pattern Date: Wed, 15 Sep 2004 08:27:39 +0100 Organization: BAE SYSTEMS Message-ID: <4147ed82$1_1@baen1673807.greenlnk.net> References: <%Fi1d.245967$OR2.11136154@news3.tin.it> <14p6ezf3vze8j$.j05arkr066wi.dlg@40tude.net> <87llfdgcdf.fsf@deneb.enyo.de> X-Trace: news.uni-berlin.de ljQGMGBdlsbreeReEnwoFAvWsaxY8hu+VbL2K7lhe1qEciXKh8 X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:3744 Date: 2004-09-15T08:27:39+01:00 List-Id: Luca Stasio wrote: > Hi, is the one from Martin Dowie and Steve a right solution? Both are "right" in that they offer the solution you require (an OO singleton). The difference in is in implementation. While the code I gave you works, I'd agree with Steve that there is a "more Ada-way" of implementing it. But you can use the code I sent 'as is' without any problems. -- Martin