On Thursday, 12 November 2015 at 21:16:25 UTC, Walter Bright wrote:
On 11/12/2015 6:44 AM, John Colvin wrote:
dmd is being clever and spotting that fmttable is pure, it would be good if
ldc/gdc could spot this to.

It's more than that - dmd's optimizer is designed to make use of the guarantees of a pure function. Since C/C++ do not have pure functions, ldc/gdc's optimizer may not have that capability.

gcc has had the pure function attribute since version 2.96 in 2000.

Reply via email to