home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,911 of 2,753   
   glen herrmannsfeldt to Warren   
   Re: Help with Yacc reduce/reduce conflic   
   23 Jun 10 18:25:34   
   
   From: gah@ugcs.caltech.edu   
      
   Warren  wrote:   
      
   > I'm writing a tool for novice Java students to submit their programs   
   > on-line and get back warnings about common mistakes, e.g. if (x = y),   
   > and assignments where the == operator is used instead of =.   
      
   I thought that Java made this C mistake illegal, except in   
   the case of boolean variables, with the requirement that the   
   expression be of type boolean.   
      
   Though I do like the simplicity of the C form, it is a convenient   
   source of hard to find bugs.   
      
   It might be that the compilers don't give an instructive   
   error for this case, though.   
      
   -- glen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca