comp.lang.ada
 help / color / mirror / Atom feed
From: Ali Bendriss <ali.bendriss@dementia.ion.ucl.ac.uk>
To: comp.lang.ada@ada-france.org
Subject: Re: prefix notation
Date: Mon, 12 Mar 2007 22:00:50 +0000
Date: 2007-03-13T00:20:03+01:00	[thread overview]
Message-ID: <mailman.119.1173741435.18371.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <1173730834.022764.43070@s48g2000cws.googlegroups.com>

On Monday 12 March 2007 20:20, Adam Beneschan wrote:
> On Mar 12, 12:02 pm, Ali Bendriss <Bendr...@drc.ion.ucl.ac.uk> wrote:
> > On Monday 12 March 2007 12:27, Jean-Pierre Rosen wrote:
> > > Ali Bendriss a écrit :
> >
> > [...]
> >
> > 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, 
When I say easy to understand it's because the interface is mostly 
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 
source of documention. It's not true for the two others language I took in 
example.

> I guess I'm not sure why you think an Ada package that declared 
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 access 
the cache for example.

I've no access yet to a whole program or library that use the prefixed 
notation. So I must says that I've no background on that topics, It's just a 
feeling.      

Ali.



  reply	other threads:[~2007-03-12 22:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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