On Friday, 6 June 2014 at 23:08:41 UTC, Tom Browder via Digitalmars-d wrote:
What about the lexer and parser info on the D lang site in the
language reference.  Is it current?

https://issues.dlang.org/show_bug.cgi?id=10233

Language changes in D have traditionally started out as compiler changes, and then some time later a change is made to the grammar specification. Sometimes this process doesn't happen properly and other times it just doesn't happen.

I've been trying to keep better track of this so that the specification doesn't get too out-of-date.

You want to see something funny? Look here:
https://github.com/D-Programming-Language/dmd/blob/master/src/lexer.c#L2791
https://github.com/D-Programming-Language/dmd/blob/master/src/parse.c#L453

A new keyword was added to the language without the docs being updated. There was some talk about this change being reverted, but it still hasn't been. If nobody fixes this we'll end up with a compiler release that has an undocumented keyword.

Reply via email to