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,5e1ecbc6afec137d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!t69g2000cwt.googlegroups.com!not-for-mail From: "Adam Beneschan" Newsgroups: comp.lang.ada Subject: Re: prefix notation Date: 12 Mar 2007 13:50:15 -0700 Organization: http://groups.google.com Message-ID: <1173730498.020939.266970@t69g2000cwt.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1173732622 25953 127.0.0.1 (12 Mar 2007 20:50:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 12 Mar 2007 20:50:22 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t69g2000cwt.googlegroups.com; posting-host=66.126.103.122; posting-account=cw1zeQwAAABOY2vF_g6V_9cdsyY_wV9w Xref: g2news1.google.com comp.lang.ada:14496 Date: 2007-03-12T13:50:15-07:00 List-Id: 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 read. > > 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, I guess I'm not sure why you think an Ada package that declared approximately that many methods would need to be split up to be readable. Why would a large Ada package spec be any less easy to understand? -- Adam > > > There is no general rule, but often if you end up with too many methods, > > it may well be that they don't belong to the right object. > > > (BTW: the whole Java library is full of these badly assigned methods!) > > > My 5cts... > > -- > Ali