• 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: Declarations in middle of C code?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declarations in middle of C code?!


  • Subject: Re: Declarations in middle of C code?!
  • From: Clark Cox <email@hidden>
  • Date: Sun, 4 Jan 2004 20:12:40 -0500

On Jan 04, 2004, at 19:00, Charles Srstka wrote:

> Yeah, I guess that was the reason - I was using gcc 2.9.5 when I was
> using 10.2.
>
> Anyway, thanks for the info. Does anyone know whether using this new
> feature the way it is commonly used in C++ is considered good style
> for C code? Or is it better just to keep coding the old way, using
> this ability only to insert logs in places where it would normally not
> be possible?
>
> Thanks,
> Charles

Style is just that; style. It's up to you. However, I find that code
becomes more readable IMHO when variable declarations are made as close
as possible to where the variables are used.

--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html

[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.

  • Follow-Ups:
    • Re: Declarations in middle of C code?!
      • From: Normand Rivard <email@hidden>
References: 
 >Declarations in middle of C code?! (From: Charles Srstka <email@hidden>)
 >Re: Declarations in middle of C code?! (From: Charles Srstka <email@hidden>)

  • Prev by Date: RE: Intercepting JavaScript calls in WebViews
  • Next by Date: NSDrawer contentView
  • Previous by thread: Re: Declarations in middle of C code?!
  • Next by thread: Re: Declarations in middle of C code?!
  • Index(es):
    • Date
    • Thread