• 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: Avoiding == and = mixup in if statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoiding == and = mixup in if statements


  • Subject: Re: Avoiding == and = mixup in if statements
  • From: Bob Ippolito <email@hidden>
  • Date: Thu, 20 May 2004 23:03:06 -0400

On May 20, 2004, at 10:10 PM, Christoffer Lerno wrote:

> Java disallows stuff like
>
> if (myObject=nil) { dosomething }
>
> Is it possible to maybe disallow the same potential error when I'm
> writing obj-c programs? Could I do something with the pre-processor
> perhaps?

Switch to PyObjC or Java/Cocoa? ;)

-bob

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


References: 
 >Avoiding == and = mixup in if statements (From: Christoffer Lerno <email@hidden>)

  • Prev by Date: Re: NSMakePoint and such - what about memory allocation?
  • Next by Date: Re: Avoiding == and = mixup in if statements
  • Previous by thread: Avoiding == and = mixup in if statements
  • Next by thread: Re: Avoiding == and = mixup in if statements
  • Index(es):
    • Date
    • Thread