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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cfb2002511b830ab X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.15.41 with SMTP id u9mr19294136pbc.3.1322382085853; Sun, 27 Nov 2011 00:21:25 -0800 (PST) Path: lh20ni23215pbb.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Starter project: getopt_long in Ada Date: Sun, 27 Nov 2011 09:21:24 +0100 Organization: Ada @ Home Message-ID: References: <4ecfc4c4$0$6579$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 3JPKcIlxw1eaZ+KTMfEJKw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.60 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:19191 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-11-27T09:21:24+01:00 List-Id: Le Fri, 25 Nov 2011 17:39:31 +0100, Georg Bauhaus = a =C3=A9crit: > package Natools.Handlers is > > type Id_And_Argument_Handler > (Posixly_Correct : Boolean; > ...) > is abstract tagged private; > > procedure Callback > (Handler : in out Id_And_Argument_Handler; > Id : Option_Id; > Argument : String) is abstract; > > procedure Missing_Argument > (Handler : in out Id_And_Argument_Handler; > Id : Option_Id) is null; > > etc. > > end Natools.Handlers; I had the same question in my mind too. I am in favor of tagged type abo= ve = access to subprogram, but was thinking this was perhaps just a matter of= = personal preferences. Do someone know about some on-line papers talking = in = deep about tagged types vs access to subprograms ? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: [Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univer= sity]