• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is this?


  • Subject: Re: What is this?
  • From: deivy petrescu <email@hidden>
  • Date: Mon, 28 Feb 2005 21:35:46 -0500


On Feb 28, 2005, at 20:24, kai wrote:

I should have seen that the lack of parens around a 'count' would cause a problem, deivy - even though Script Editor didn't complain. That should really have been:


That is funny, I thought I did change that but may be I did not.
Actually, I thought I had a number returning with 0.0+(character 2 of "9").
But now, I do not get the same thing.
The bug has a bug!



You said it, deivy. How's the wording on that bug report coming along? ;-)

I am actually registering in English 400. I hope I'll be able to report it after I finish it.


You want weird? I said earlier that "there seems to be a couple of ways to change the result". What I hadn't considered was the possibility of getting away with a real as an item number:

0 * (item 0.123456789 of "9")
--> 1.111111101

You know what, I get the same number...

set lista to {}
set n to "0."
repeat with j from 1 to 9
	set n to ("" & n & j) * 1
	set end of lista to {n, "  ", (1 * (item n of "9"))}
end repeat
lista

-->{{0.1, " ", 0.9}, {0.12, " ", 1.08}, {0.123, " ", 1.107}, {0.1234, " ", 1.1106}, {0.12345, " ", 1.11105}, {0.123456, " ", 1.111104}, {0.1234567, " ", 1.1111103}, {0.12345678, " ", 1.11111102}, {0.123456789, " ", 1.111111101}}


On Feb 27, 2005, at 16:29, Nigel Garvey wrote:

So far, it seems that the bug affects statements in the form:

  [integer][dual-class math operator][reference consisting of ¬
     [singular, plural, or numbered class, property, or constant] of
[numeric string]]

Nigel, May be you are right but there is still a problem:

a.  (character 5 of "q") --> error: "Can't get character 5 of \"q\"."

b.  1 * (character 5 of "q") --> "Can't make \"q\" into a number."

c. 1.0 * (character 5 of "q") --> "Can't make character 5 of \"q\" into a number."


(a) is what I'd expect.

Now, (b) and (c) I hope to have an answer after I finish my English course.

deivy
--------------------------------------------
Agora quem da bola é o Santos,
Salve o novo campeão!

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: What is this? (From: kai <email@hidden>)

  • Prev by Date: Re: what hourly rate?
  • Next by Date: Re: Re: Converting 'file:/' URL to MacOS path name...
  • Previous by thread: Re: What is this?
  • Next by thread: Re: What is this?
  • Index(es):
    • Date
    • Thread