• 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: nil messaging? Is it safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil messaging? Is it safe?


  • Subject: Re: nil messaging? Is it safe?
  • From: Ondra Cada <email@hidden>
  • Date: Sat, 28 Sep 2002 14:57:19 +0200

On Friday, September 27, 2002, at 06:14 , Simon Stapleton wrote:

float and double are both of size 4, are they not,

I think 8. Nevertheless, even if I was wrong...

so if there is 4 bytes of zero being returned they should also have their bytes set to zero as a part of the assignment, no?

...this would not work either, since they are returned in a FPU register which has nothing to do with $r3. Besides, generally with floats a zero bit pattern might differ from a zero value (frankly, dunno how it is with PPC -- one might check in docs, it would be there, I just have no time to search just now).

The following simple test...

Alas, this kind of tests does not help much: since values returned are essentially random, such test would only prove that it does not work if the value differs; if it happens to be correct, it might be just as well by pure chance as by design.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: nil messaging? Is it safe?
      • From: Simon Stapleton <email@hidden>
References: 
 >Re: nil messaging? Is it safe? (From: Simon Stapleton <email@hidden>)

  • Prev by Date: Re: NSImageView scrolling
  • Next by Date: Re: NSImageView scrolling
  • Previous by thread: Re: nil messaging? Is it safe?
  • Next by thread: Re: nil messaging? Is it safe?
  • Index(es):
    • Date
    • Thread