FSL arrays and terminology
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
FSL arrays and terminology         


Author: Krishna Myneni
Date: May 13, 2008 19:01

In the FSL, the word ARRAY and its variants are used to define 1-dimensional
arrays. In retrospect this appears to me to have been a poor selection of a word
name. The general meaning of the word "array" is a regular arrangement of items,
and is not restricted to one dimension. Thus, vectors are an example of one
dimensional arrays, matrices are two dimensional arrays, and objects with a
larger number of indices are higher dimensional arrays. It is unfortunate that
the meaning of ARRAY in the FSL is restricted to 1-D arrays, since its meaning
conflicts with the general meaning, and could lead to confusion. Worse, it
prevents us from using the word ARRAY for defining higher-dimensional arrays in
the FSL, and we will have to resort to using awkward names such as NDARRAY, or
some such...
Show full article (1.22Kb)
2 Comments
Re: FSL arrays and terminology         


Author: C. G. Montgomery
Date: May 15, 2008 14:24

Krishna Myneni krishnamyneni@bellsouth.net wrote:
>
> In the FSL, the word ARRAY and its variants are used to define
> 1-dimensional arrays. In retrospect this appears to me to have been a
> poor selection of a word name. The general meaning of the word "array"
> is a regular arrangement of items, and is not restricted to one
> dimension. [...]
>
> Krishna

Personally, I agree with the preference for 'array' as the general term.
Presently the FSL provides only one- and two-dimensional arrays, and uses
MATRIX for the latter.

Changing this terminology is another of a variety of possible revisions
that have accumulated with experience, several of which have been
mentioned in comp.lang.forth at various times. A "new release" of the
FSL could incorporate a number of them, and would be IMHO a significant
improvement. Single changes which "break existing code" are harder to
justify.
Show full article (1.57Kb)
no comments
Re: FSL arrays and terminology         


Author: Krishna Myneni
Date: May 15, 2008 19:52

C. G. Montgomery wrote:
> Krishna Myneni krishnamyneni@bellsouth.net wrote:
>
>> In the FSL, the word ARRAY and its variants are used to define
>> 1-dimensional arrays. In retrospect this appears to me to have been a
>> poor selection of a word name. The general meaning of the word "array"
>> is a regular arrangement of items, and is not restricted to one
>> dimension. [...]
>>
>> Krishna
>
> Personally, I agree with the preference for 'array' as the general term.
> Presently the FSL provides only one- and two-dimensional arrays, and uses
> MATRIX for the latter.
>
> Changing this terminology is another of a variety of possible revisions
> that have accumulated with experience, several of which have been
> mentioned in comp.lang.forth at various times. A "new release" of the
> FSL could incorporate a number of them, and would be IMHO a significant
> improvement. Single changes which "break existing code" are harder to ...
Show full article (2.65Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
how to join array into arraycomp.lang.perl.misc ·
Re: Does passing an array make a copy of the array in memory?comp.lang.labview ·