Re: Why can't I do "new uint32_t[ size ]"
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