comp.lang.ada
 help / color / mirror / Atom feed
* prefix notation
@ 2007-03-12 11:53 Ali Bendriss
  2007-03-12 12:27 ` Jean-Pierre Rosen
  0 siblings, 1 reply; 6+ messages in thread
From: Ali Bendriss @ 2007-03-12 11:53 UTC (permalink / raw)
  To: comp.lang.ada

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 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-12 22:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 11:53 prefix notation Ali Bendriss
2007-03-12 12:27 ` 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

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