On 2013-12-07 00:56, Walter Bright wrote:
2. D knows when functions are pure. C has to make worst case
assumptions.
Does the compiler currently take advantage of this?
dmd does.
Compiling the following code:
pure int foo (immutable int a, immutable int b)
{
return a + b;
}
void main
On 2013-12-08 19:44, Walter Bright wrote:
To be fairer (!), all of these (except restrict) are non-Standard
extensions for C. "restrict" is an extension for C++.
It doesn't matter they're not standard, as long as people are using them.
--
/Jacob Carlborg
On 9 December 2013 08:05, Jacob Carlborg wrote:
> On 2013-12-07 00:56, Walter Bright wrote:
>
2. D knows when functions are pure. C has to make worst case
assumptions.
>>>
>>>
>>> Does the compiler currently take advantage of this?
>>
>>
>> dmd does.
>
>
> Compiling the following code:
>
On 2013-12-09 05:54, ed wrote:
In the sources for that page there is this...
---
[snip]