• 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: Objective-C or C++ or something...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C or C++ or something...


  • Subject: Re: Objective-C or C++ or something...
  • From: Karl Kuehn <email@hidden>
  • Date: Thu, 7 Aug 2003 16:25:26 -0400

Strict C and C++ do not allow this, ObjC and ObjC++ do allow this, so all you have to do is change file extension over and you will be golden. You don't have to use anything in the Obj side of the language. C++ files named as ObjC++ files will compile just fine (there may be something in the more advanced structures where I am wrong... but for most of us...).

Karl Kuehn
email@hidden

On Thursday, August 7, 2003, at 03:58 PM, Seth Willits wrote:

My compiler either just started, or I just noticed, complaining if I declare a variable in the middle of a routine. All of the examples I see and the code I have does this, so obviously it's some kind of setting, but I can't find it anywhere. Could someone tell me how to fix this?
_______________________________________________
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: Objective-C or C++ or something...
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: Objective-C or C++ or something...
      • From: Óscar Morales Vivó <email@hidden>
    • Re: Objective-C or C++ or something...
      • From: Seth Willits <email@hidden>
References: 
 >Objective-C or C++ or something... (From: Seth Willits <email@hidden>)

  • Prev by Date: dragging to a background app's window
  • Next by Date: Re: Objective-C or C++ or something...
  • Previous by thread: Objective-C or C++ or something...
  • Next by thread: Re: Objective-C or C++ or something...
  • Index(es):
    • Date
    • Thread