Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Correct Behaviour? Was False = 2 ????

From: joel:neely:fedex at: 4-Jul-2001 14:11

Hello, again, Jeff, Jeff Kreis wrote:
> Indeed. "First" can map to anything, but how it maps is pretty > clear, it refers to the element at position one (whatever > position one is defined as). >
Only if one's head is stuck in 1-origin mode. (Quoth Samuel Jackson in _The_Matrix_, "Free your mind!" ;-) "First" refers to the item in an ordered collection which precedes all others. #"A" is the first upper-case letter, even though its numeric value in ASCII is 65. It remains the first upper-case letter even if you switch to EBCDIC, which gives it a different number.
> > My "first" name is Joel. > > Ahh, so you've got a one base indexed name, huh? >
No. That part of my name simply precedes all other parts. The concept of "one" doesn't even appear.
> > And, as I mentioned earlier, the first house in my block > > has an index (street number) of 1262. > > Which, I guess, is the house in position 1? >
No. It's the house in position 1262. That house precedes all the others in the block.
> If the mailman is a zero based indexer, does the first house > get his neighbor's mail? (; >
The mail man doesn't have to count them to deliver the mail; he only has to match the label on the house to the label on the envelope. SAME? works just as well in either 1-origin or 0-origin! ;-) -jn- ------------------------------------------------------------ Programming languages: compact, powerful, simple ... Pick any two! joel'dot'neely'at'fedex'dot'com