Re: malloc was optimized out
Re: malloc was optimized out
- Subject: Re: malloc was optimized out
- From: Clark Cox <email@hidden>
- Date: Mon, 04 Jul 2016 18:20:58 -0700
> On Jul 4, 2016, at 15:53, Dmitry Markman <email@hidden> wrote:
>
> Hmm
>
> behavior you described is good receipt to un-robust software
>
> IMHO, all talks about “effective", “typically" and so on and on is matter of interpretation
>
> and are much less important than standard
An implementation of malloc that never returns NULL is still compliant to the standard.
> first of all there is a standard and nothing more. In some cases standard says that behavior is undefined
>
> but in case of “malloc" and "operator new” everything is well defined
The standard says that malloc returns NULL in case of failure. It however, says nothing about what constitutes a failure, or *any* situations in which NULL must be returned..
--
Clark Smith Cox III
email@hidden
_______________________________________________
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