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

Avoiding == and = mixup in if statements


  • Subject: Avoiding == and = mixup in if statements
  • From: Christoffer Lerno <email@hidden>
  • Date: Fri, 21 May 2004 10:10:02 +0800

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?

/Christoffer
_______________________________________________
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: Avoiding == and = mixup in if statements
      • From: Greg Hurrell <email@hidden>
    • Re: Avoiding == and = mixup in if statements
      • From: Randall Meadows <email@hidden>
    • Re: Avoiding == and = mixup in if statements
      • From: Chris Pavicich <email@hidden>
    • Re: Avoiding == and = mixup in if statements
      • From: Wade Tregaskis <email@hidden>
    • Re: Avoiding == and = mixup in if statements
      • From: Nicko van Someren <email@hidden>
    • Re: Avoiding == and = mixup in if statements
      • From: Bob Ippolito <email@hidden>
  • Prev by Date: Re: Does not execute on launch
  • Next by Date: NSMakePoint and such - what about memory allocation?
  • Previous by thread: Re: Cocoa Bindings - many people using them?
  • Next by thread: Re: Avoiding == and = mixup in if statements
  • Index(es):
    • Date
    • Thread