DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

foreach(const ref x; y) is invalid syntax #117

Closed tomerfiliba closed 9 years ago

tomerfiliba commented 9 years ago

code such as

foreach(x, const ref y; myTable) {
    something();
}

is considered invalid syntax (specifically it's the const that causes it) and everything from that point on is marked as error in the file. Using latest DDT.

bruno-medeiros commented 9 years ago

Workaround: write ref const y; instead