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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,36a29c2860aff686 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Properties Date: Wed, 1 Dec 2010 21:10:56 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <3b84c8e7-1a51-4a7c-9646-119f1fc51478@s4g2000yql.googlegroups.com> <4pnv7nl4cdui$.1n28i7lqk4mek$.dlg@40tude.net> <1k7367gtebsgm$.18auo6u3nfg34.dlg@40tude.net> Injection-Date: Wed, 1 Dec 2010 21:10:56 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="12149"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Uo5vz03HCwWUCd7AJmjBpVKmOQ+F6bMA=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:8gtZjcD5b/XDRxM5PWkdldT68eI= Xref: g2news2.google.com comp.lang.ada:16703 Date: 2010-12-01T21:10:56+00:00 List-Id: Randy Brukardt expounded in news:id68q7$d66$1@munin.nbi.dk: > "Warren" wrote in message > news:Xns9E417369AD1F4WarrensBlatherings@81.169.183.62... >> Dmitry A. Kazakov expounded in >> news:1k7367gtebsgm$.18auo6u3nfg34.dlg@40tude.net: >> >>> On Wed, 1 Dec 2010 15:21:39 +0000 (UTC), Warren wrote: >>>> A library designed in Ada from the ground up, would be >>>> better. .. >>> And I don't want to >>> instantiate a generic each time I need an event handler. >> >> Agreed, but I don't believe we're stuck with that >> solution. All you need is procedure'Access for the >> callback. > > Claw solely uses OOP to support event handlers. There are > no explicit callbacks, and there are no generics to > instantiate. (But instantiating a generic probably involves > less typing than deriving an OOP type). IMHO, events cannot > and should not be separated from the associated objects. .. > Randy. Ya, that seems to be a sensible approach. It's hard for me to forget a lifetime of C-based brainwashing. ;-) Warren