unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Re: more garbled documentation in uniform arrays
@ 2004-01-17 15:48 Rouben Rostamian
  2004-01-23  0:15 ` Kevin Ryde
  0 siblings, 1 reply; 4+ messages in thread
From: Rouben Rostamian @ 2004-01-17 15:48 UTC (permalink / raw)
  Cc: bug-guile

Kevin Ryde <user42@zip.com.au> wrote:

> "Rouben Rostamian" <rostamian@umbc.edu> writes:
> >
> > Essentially all items listed in this section need a good overhaul.
> 
> Yep.  Bit of polish below.  The hairy functions like enclose-array are
> still not super clear.
> 
> Conventional Arrays
> -------------------
> 
> "Conventional arrays" are a collection of cells organized into an
> arbitrary number of dimensions.  Each cell can hold any kind of Scheme
...snipped...

Thanks, Kevin, for doing all that work in cleaning up the manual
section on Conventional Arrays.  I think it makes much better sense
now.  The addition of sample code fragments in several places is a
very good touch.

I have a couple of suggestions for further changes.

1.
The subject of this section is "Conventional Arrays".  Mixing in
the documentation of uniform-arrays/uniform-vectors is not ideal.
I think it would be less confusing if the descriptions of all
uniform-* procedures were moved to the section "Uniform Arrays"
where they belong.

2.
The second paragraph in the description of make-array reads a bit
awkward to me.  I have suggested an alternative below.  Use it if
you see fit.

--------------------
 - Scheme Procedure: make-array initial-value bound ...
     Create and return an array that has as many dimensions as there are
     BOUNDs and fill it with INITIAL-VALUE.

old  Each BOUND may be a positive non-zero integer N, in which case the
old  index for that dimension can range from 0 through N-1; or an
old  explicit index range specifier in the form `(LOWER UPPER)', where
old  both LOWER and UPPER are integers, possibly less than zero, and
old  possibly the same number (however, LOWER cannot be greater than
old  UPPER).

new  Each BOUND may be a positive non-zero integer N, in which case
new  the index for that dimension can range from 0 through N-1;
new  or an explicit index range specifier as a list of two integers
new  `(LOWER UPPER)', where LOWER or UPPER may be negative but
new  UPPER cannot be less than LOWER.


-- 
Rouben Rostamian


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread
* more garbled documentation in uniform arrays
@ 2004-01-09 17:38 Rouben Rostamian
  2004-01-17 14:48 ` Kevin Ryde
  0 siblings, 1 reply; 4+ messages in thread
From: Rouben Rostamian @ 2004-01-09 17:38 UTC (permalink / raw)


Version: guile--1.6.4
  Guile reference manual: both "info" and TeX formats:
    In the section titled "Conventional Arrays"
    (This is Section 19.6.1 in my printout)

Essentially all items listed in this section need a good overhaul.

For instance, in the description of array-set! we read:

(Cut-and-paste from the info document follows:)

 - Scheme Procedure: array-set! v obj . args
 - Scheme Procedure: uniform-array-set1! v obj args
 - C Function: scm_array_set_x (v, obj, args)
     Set the element at the `(index1, index2)' element in ARRAY to
     NEW-VALUE.  The value returned by array-set! is unspecified.

The terms used in the description bear no similarity to arguments given
in the prototype.

-- 
Rouben Rostamian


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


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

end of thread, other threads:[~2004-01-23  0:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-17 15:48 more garbled documentation in uniform arrays Rouben Rostamian
2004-01-23  0:15 ` Kevin Ryde
  -- strict thread matches above, loose matches on Subject: below --
2004-01-09 17:38 Rouben Rostamian
2004-01-17 14:48 ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).