• 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: number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: number


  • Subject: Re: number
  • From: Emmanuel <email@hidden>
  • Date: Sat, 15 Oct 2005 12:06:26 +0200

At 8:20 PM -0500 10/14/05, Jim Witte wrote:
This works:

script o
    property x : -1.780654340609
    property y : -5
end script
-(o's x as real)

The '<x>'s <y>' syntax only seems to return a real number (try "o's x"), but the minus operator doesn't see that it returned a number, unless it's coerced explicitly to a real. This is one example of 'common sense type coercion' that AS doesn't do that drives me nuts..

I assume "get o's x" specifically sets the type of the return value correctly. I'd call this a bug..

Jim '


On Sep 22, 2005, at 4:09 AM, jj wrote:

script o

    property x : -1.780654340609

end script

-(o's x)



FYI, I submitted the bug, and it was a duplicate.

Emmanuel
_______________________________________________
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


  • Follow-Ups:
    • Re: number
      • From: jj <email@hidden>
References: 
 >Re: number (From: Jim Witte <email@hidden>)

  • Prev by Date: Re: do shell script "ps -auxwww | grep rsync | grep -v grep"
  • Next by Date: Re: number
  • Previous by thread: Re: number
  • Next by thread: Re: number
  • Index(es):
    • Date
    • Thread