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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.astraweb.com!newsrouter-eu.astraweb.com!proxad.net!cleanfeed1-b.proxad.net!nnrp11-1.free.fr!not-for-mail Return-Path: X-Virus-Scanned: amavisd-new at drc.ion.ucl.ac.uk From: Ali Bendriss Organization: The Dementia Research Centre To: comp.lang.ada@ada-france.org Subject: prefix notation Date: Mon, 12 Mar 2007 11:53:14 +0000 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 NNTP-Posting-Date: 12 Mar 2007 12:55:01 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1173700501 news-4.free.fr 6067 88.191.14.223:60561 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:14472 Date: 2007-03-12T12:55:01+01:00 Hello, For the development of G2F, I'm interested in the prefix notation. An example is available here : http://svn.gna.org/viewcvs/g2f/trunk/g2f_io/trunk/g2f_im/im_test.adb?rev=15&view=markup and the experimental packages are browsable here : http://svn.gna.org/viewcvs/g2f/trunk/g2f_io/trunk/g2f_im/?rev=15#dirlist The problem is that I only have two objects : a single image and a list of single image (multiframe images). To be able to use the prefix notation I understand that each operation on an object must be in the same package of the object himself. What about if I have a big number of operation and I would like the user to write something like procedure test is Img : Image_Obj; begin Img.Read ("test.tiff"); Img.Rotate(90); Img.Draw(Circle);....; Img.SetPixel ((100,72), Red)); Img.Write ("test.gif"); end test; Is there some way to split the package to still have something readable (notably the specification) ? What other facility may I use for that purpose. It's not in the Ada philosophy but I'm interested in the ease of use in the user point of view, the garbage collection, and the fashion ;) thanks for your feed back. -- Ali