• 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: Turning off spurious C warning in XCode ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning off spurious C warning in XCode ?


  • Subject: Re: Turning off spurious C warning in XCode ?
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sun, 23 Nov 2003 16:19:48 +0100

Le 23 nov. 03, ` 14:16, Troy Dawson a icrit :

don't reuse instance variable names in your methods. I preface my instance variables with a '_ 'as habit.


I don't "reuse" instance variable, just give them a local name. I intentionnally do so in order to avoid a direct reference to the variable by mistake. Also I consider it clearer that way.


also, your original issue:

id session = [self session];

will not produce an warning -- method names do not collide with C variable names.

It doesn't and that's not the origin of the warning. Read my first post about that.


Thomas Lachand-Robert ********************** email@hidden << Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe. _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.

References: 
 >Turning off spurious C warning in XCode ? (From: Thomas Lachand-Robert <email@hidden>)
 >Re: Turning off spurious C warning in XCode ? (From: Thomas Lachand-Robert <email@hidden>)
 >Re: Turning off spurious C warning in XCode ? (From: Troy Dawson <email@hidden>)

  • Prev by Date: GDB Crashing Reproducably
  • Next by Date: Re: Groups, shell scripts, yacc
  • Previous by thread: Re: Turning off spurious C warning in XCode ?
  • Next by thread: Re: Turning off spurious C warning in XCode ?
  • Index(es):
    • Date
    • Thread