From: Mike Barnes on
R H Draney <dadoctah(a)spamcop.net>:
>Adam Funk filted:
>>
>>On 2010-02-21, António Marques wrote:
>>
>>> On Feb 21, 1:09 am, Andrew Usher <k_over_hb...(a)yahoo.com> wrote:
>>
>>>> But 0 is the start of computer indexing - at least in real programs. 0
>>>> = Sunday.
>>>
>>> Ahem. In low level, pointer oriented languages such as C and its
>>> family. And those who chose to imitate it.
>>
>>From Verity Stob's "Thirteen Ways to Loathe VB":
>>
>> 4. Another thing about arrays. The index of the first element is 0,
>> unless it is set to 1 by a directive.
>>
>> 5. But there are also collections, modern object-oriented versions
>> of arrays. And the first element of these is usually 1, unless
>> it happens to be 0. Sometimes it is 0 and sometimes it is 1,
>> depending on where you found it. Do you feel lucky, punk? Well,
>> do ya?
>
>In APL, indexing starts at one unless you've explicitly set it to zero by
>setting the system variable quad-IO....r

In Perl, indexing starts at zero unless you've explicitly set it to one
by setting the system variable $[.

--
Mike Barnes
Cheshire, England
From: Adam Funk on
On 2010-02-22, Mike Barnes wrote:

> R H Draney <dadoctah(a)spamcop.net>:

>>In APL, indexing starts at one unless you've explicitly set it to zero by
>>setting the system variable quad-IO....r
>
> In Perl, indexing starts at zero unless you've explicitly set it to one
> by setting the system variable $[.

I like the notes in _Programming Perl_:

(Mnemonic: [ begins subscripts.)

Assignment to $[ ... is discouraged.


--
I don't know what they have to say
It makes no difference anyway;
Whatever it is, I'm against it! [Prof. Wagstaff]
From: Adam Funk on
On 2010-02-22, R H Draney wrote:

> In APL, indexing starts at one unless you've explicitly set it to zero by
> setting the system variable quad-IO....r

"quad-IO" ... are you winding me up?


--
Do you know what they do to book thieves up at Santa Rita?
http://www.shigabooks.com/indeces/bookhunter.html
From: Adam Funk on
On 2010-02-22, Adam Funk wrote:

> On 2010-02-22, R H Draney wrote:
>
>> In APL, indexing starts at one unless you've explicitly set it to zero by
>> setting the system variable quad-IO....r
>
> "quad-IO" ... are you winding me up?

Just remembered that that means "#IO", therefore arguably no sillier
than "$[". Never mind.


--
Usenet is a cesspool, a dung heap. [Patrick A. Townson]
From: Adam Funk on
On 2010-02-22, Androcles wrote:

> "Michael Stemper's blunder" is a contraction of "Michael Stemper, his
> blunder".

You see the latter construction in some C.17 English, but it was based
on a folk etymology or hypercorrection (or a combination of the two)
of "Michael Stemper's blunder".


--
The generation of random numbers is too important to be left to
chance. [Robert R. Coveyou]