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,dba59192f3dc208f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.15.105 with SMTP id w9mr22258138pbc.7.1323087175149; Mon, 05 Dec 2011 04:12:55 -0800 (PST) Path: lh20ni71896pbb.0!nntp.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Reto Buerki Newsgroups: comp.lang.ada Subject: Re: Announce: D_Bus/Ada, talk with your desktop in Ada Date: Mon, 5 Dec 2011 12:12:54 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Mon, 5 Dec 2011 12:12:54 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="vXKYoogiAP0U7WWFaUN+xQ"; logging-data="5219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Gi/VDfQAKpTTKXwVL8ns9" User-Agent: slrn/pre1.0.0-18 (Linux) Cancel-Lock: sha1:8nuqUd/sEATyLhVd1ysvz7wX4dA= Xref: news1.google.com comp.lang.ada:19345 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-12-05T12:12:54+00:00 List-Id: On 2011-12-05, Yannick Duchêne wrote: > Le Mon, 05 Dec 2011 12:17:30 +0100, Reto Buerki a écrit: >> [2] - http://www.codelabs.ch/dbus-ada > At the bottom of the above page, in section “Examples”, there's a > > > with D_Bus.Arguments.Basic; > with D_Bus.Arguments.Containers; > > Then later > > pragma Unreferenced (D_Bus.Arguments.Basic); > pragma Unreferenced (D_Bus.Arguments.Containers); > > > Do you withed both for initialization side effects ? No. This is needed to make the basic and container types known to the D_Bus/Ada type system. D_Bus/Ada uses generic dispatching to create Arguments from low-level D-Bus message arguments. The example does not use specific argument extensions, that's why both packages are Unreferenced. E.g. if you remove 'with D_Bus.Arguments.Containers' in this example you'll get: raised D_BUS.D_BUS_ERROR : Unknown type code 'a' in message The type system does not know how to deserialize the D-Bus ARRAY(97) type. - reto