comp.lang.ada
 help / color / mirror / Atom feed
* Charles: suggestion for reliability
@ 2002-11-11 16:07 Victor Porton
  2002-11-12  8:24 ` Preben Randhol
  2002-11-13 19:33 ` Matthew Heaney
  0 siblings, 2 replies; 3+ messages in thread
From: Victor Porton @ 2002-11-11 16:07 UTC (permalink / raw)


I suggest to rename function Size in Charles to something like
Physical_Size or Phys_Size or Allocation_Size because otherwise
it is *too* confusing as one may use Size by mistake instead of
Length. We need warning on using size. I an future version,
please remove Size.

I even used to write Length or Size at random and grant to the
compiler to warn me if I choose the wrong name! May be not only I.



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

* Re: Charles: suggestion for reliability
  2002-11-11 16:07 Charles: suggestion for reliability Victor Porton
@ 2002-11-12  8:24 ` Preben Randhol
  2002-11-13 19:33 ` Matthew Heaney
  1 sibling, 0 replies; 3+ messages in thread
From: Preben Randhol @ 2002-11-12  8:24 UTC (permalink / raw)


Victor Porton wrote:
> I suggest to rename function Size in Charles to something like
> Physical_Size or Phys_Size or Allocation_Size because otherwise
> it is *too* confusing as one may use Size by mistake instead of
> Length. We need warning on using size. I an future version,
> please remove Size.

? I thought Size in Ada always meant that what you wrote above and not
Lenght so why should it be confusing?

-- 
Preben Randhol ------------------------ http://www.pvv.org/~randhol/ --
�There are three things you can do to a woman. You can love her, suffer
 for her, or turn her into literature.�  - Justine, by Lawrence Durrell



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

* Re: Charles: suggestion for reliability
  2002-11-11 16:07 Charles: suggestion for reliability Victor Porton
  2002-11-12  8:24 ` Preben Randhol
@ 2002-11-13 19:33 ` Matthew Heaney
  1 sibling, 0 replies; 3+ messages in thread
From: Matthew Heaney @ 2002-11-13 19:33 UTC (permalink / raw)


porton@ex-code.com (Victor Porton) wrote in message news:<3dd082fe$0$303$bed64819@news.gradwell.net>...
> I suggest to rename function Size in Charles to something like
> Physical_Size or Phys_Size or Allocation_Size because otherwise
> it is *too* confusing as one may use Size by mistake instead of
> Length. We need warning on using size. I an future version,
> please remove Size.

The term "size" as used in Charles is consistent with typical Ada
usage, and it refers the amount of physical storage consumed by the
object.

The term "length" is also consistent with typical Ada usage, and it
refers to the number of elements in the container.

Your suggestion is noted, and rejected.



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

end of thread, other threads:[~2002-11-13 19:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-11 16:07 Charles: suggestion for reliability Victor Porton
2002-11-12  8:24 ` Preben Randhol
2002-11-13 19:33 ` Matthew Heaney

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