• 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: Re: const assignment issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: const assignment issue


  • Subject: Re: Re: const assignment issue
  • From: "Mark Wagner" <email@hidden>
  • Date: Fri, 8 Dec 2006 14:28:26 -0800

On 12/8/06, Luigi Castelli <email@hidden> wrote:
>
> Using XCode 2.4.1 I find that error when the code is
> in a .c file,
> but no error when it is in a .cp file.
>

Exactly, I get the same thing.
If I make the file into a .cp then X-code reports no
error.
That's weird, isn' it? Or am I missing something
obvious?

Are C and C++ behaving differently in regards to
consts ?

Yes. The C++ specification permits you to do much more with constants, particularly compile-time constants, than C does.

--
Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: const assignment issue (From: Luigi Castelli <email@hidden>)

  • Prev by Date: Overriding libSystem's math functions
  • Next by Date: Re: Overriding libSystem's math functions
  • Previous by thread: Re: const assignment issue
  • Next by thread: Re: const assignment issue
  • Index(es):
    • Date
    • Thread