Summary: Compiler rejects chained <>=
           Product: D
           Version: 1.041
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

The following code

void main(){
        double a,b,c;
        assert(a <>= b <>= c);

gets this response from the compiler

joh...@klaffhorn:~$ dmd test.d 
test.d(4): found '<>=' when expecting ')'
test.d(4): found 'c' when expecting ';' following 'statement'
test.d(4): found ')' instead of statement

if parenthesis are added the problem disappear.

If this is not valid code the a more helpful error message would be nice.


Reply via email to