comp.lang.ada
 help / color / mirror / Atom feed
From: Ali Bendriss <Bendriss@drc.ion.ucl.ac.uk>
To: comp.lang.ada@ada-france.org
Subject: prefix notation
Date: Mon, 12 Mar 2007 11:53:14 +0000
Date: 2007-03-12T12:55:01+01:00	[thread overview]
Message-ID: <mailman.117.1173700418.18371.comp.lang.ada@ada-france.org> (raw)

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 



             reply	other threads:[~2007-03-12 11:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 11:53 Ali Bendriss [this message]
2007-03-12 12:27 ` prefix notation Jean-Pierre Rosen
2007-03-12 19:02   ` Ali Bendriss
2007-03-12 20:20     ` Adam Beneschan
2007-03-12 22:00       ` Ali Bendriss
2007-03-12 20:50     ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox