• 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: Why can't I do "new uint32_t[ size ]"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't I do "new uint32_t[ size ]"


  • Subject: Re: Why can't I do "new uint32_t[ size ]"
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 12 Jul 2011 21:39:15 -0600

On Jul 12, 2011, at 12:58 PM, Mark Wagner wrote:

> ...because the fragment you posted isn't valid C++: you can't execute
> code (the call to "new") outside a function.

Sure you can. That's C that only only lets you initialize variables at file scope with constant expressions.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: iOS: Differentiating between 1 or 2 finger touches
  • Next by Date: Re: iOS: Differentiating between 1 or 2 finger touches
  • Previous by thread: Re: iOS: Differentiating between 1 or 2 finger touches
  • Next by thread: NSMenuItem alternate view with CMD key problem
  • Index(es):
    • Date
    • Thread