From: "James, Roshan (Cognizant)" Date: 2004-06-19T15:48:25+09:00 Subject: Re: "Litte Ruby" book ------=_NextPartTM-000-bc333eab-b2a2-4548-b35d-f5777ce0609b Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable He is just making an eample saying that if you represent a the number 5 with any string that has 5 characters then we can do ... Etc etc. In the following examples he simply uses a string of the character 'n'. There is no reason he could not have used 'hello', he is simply trying to make an example for the hypothetical class called FunnyNumber.=20 //-----Original Message----- //From: Carl Youngblood [mailto:carl.youngblood@gmail.com]=20 //Sent: Friday, June 18, 2004 6:39 AM //To: ruby-talk ML //Subject: Re: "Litte Ruby" book // // //(commenting without having read the material quoted) Maybe he=20 //is referring to computability theory and the way Turing=20 //machines use strings of different lengths to represent=20 //numbers. The contents of the string aren't important in this=20 //case, since usually there are only a few different possible=20 //symbols, but the length of them is. // //On Fri, 18 Jun 2004 04:43:22 +0900, Photis wrote: //>=20 //> > I'm here. I hope to restart at some point, but other=20 //projects keep=20 //> > getting in the way. //>=20 //> I don't know if this is the right place, but reading this=20 //tread got me=20 //> to the "little ruby" book, so maybe you'll be patient with=20 //me. I got=20 //> stuck on page 9 of chapter 1, where it says: //>=20 //> How can a String represent an Integer? A String with n characters //> represents the Integer n. //>=20 //> My confusion could come from the fact that English is not my mother=20 //> tongue, but if I replace n with 5 and read the sentence=20 //aloud, it says=20 //> "a string with 5 characters represents the integer 5". So=20 //the string=20 //> "hello", which has 5 characters, represents the integer 5? //>=20 //> That doesn't make much sense to me. What am I missing? //>=20 //> photis //>=20 //> // // ------=_NextPartTM-000-bc333eab-b2a2-4548-b35d-f5777ce0609b Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-bc333eab-b2a2-4548-b35d-f5777ce0609b--