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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5e1ecbc6afec137d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!proxad.net!cleanfeed3-b.proxad.net!nnrp18-2.free.fr!not-for-mail Return-Path: X-Virus-Scanned: amavisd-new at drc.ion.ucl.ac.uk From: Ali Bendriss To: comp.lang.ada@ada-france.org Subject: Re: prefix notation Date: Mon, 12 Mar 2007 22:00:50 +0000 User-Agent: KMail/1.9.4 References: <1173730834.022764.43070@s48g2000cws.googlegroups.com> In-Reply-To: <1173730834.022764.43070@s48g2000cws.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-UCL-MailScanner-Information: Please contact the UCL Helpdesk, helpdesk@ucl.ac.uk for more information X-UCL-MailScanner: Found to be clean X-UCL-MailScanner-From: ali.bendriss@drc.ion.ucl.ac.uk X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 13 Mar 2007 00:20:03 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1173741603 news-4.free.fr 5887 88.191.14.223:55325 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:14500 Date: 2007-03-13T00:20:03+01:00 On Monday 12 March 2007 20:20, Adam Beneschan wrote: > On Mar 12, 12:02 pm, Ali Bendriss wrote: > > On Monday 12 March 2007 12:27, Jean-Pierre Rosen wrote: > > > Ali Bendriss a =E9crit : > > > > [...] > > > > Thanks for the precisions. > > I will make the distinction more clear (at list in my mind). > > > > > I don't know exactly what you are trying to achieve, but is Read a > > > property of Img? To me, it looks like a property of a Tiff object. The > > > method depends on the format of the file, not on the object being rea= d. > > > Similarly, isn't Draw a method of Circle rather than Img? etc. > > > > For the moment I was thinking following what was already done by other > > binding; for example : > > - perl :http://www.imagemagick.org/script/perl-magick.php#example > > - c++ :http://www.imagemagick.org/Magick++/Image.html > > > > Maybe I'm wrong. > > But those two interfaces look like easy to understand and to use. > > I looked at the first example you clicked on, and it had a list of > over 100 methods that can be applied to an image object. If, as you > say, that interface looks easy to understand,=20 When I say easy to understand it's because the interface is mostly=20 manipulating few object (and only one for the first example). The other thing is that in Ada I use the package specification as a main=20 source of documention. It's not true for the two others language I took in= =20 example. > I guess I'm not sure why you think an Ada package that declared=20 approximately that man methods would need to be split up to be readable. > Why would a large Ada package spec be any less easy to understand? > In fact if I was not using the prefixed notation I was probably writing : a parent package where I will declare the Image_Object and some child package : one for drawing, one for the IO, an other to acces= s=20 the cache for example. I've no access yet to a whole program or library that use the prefixed=20 notation. So I must says that I've no background on that topics, It's just = a=20 feeling. =20 Ali.