ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
389 stars 89 forks source link

Issue395 #509

Closed da-steve101 closed 9 years ago

da-steve101 commented 9 years ago

Pull request to resolve issue #395 Deprecate != in favour of !== for chisel to have explicit difference

da-steve101 commented 9 years ago

I may be missing something. It appears that the := operator is taking precedence over !=== Trying to work out how to fix this

nyuichi commented 9 years ago

@da-steve101

Scala parser seems recognize !== as assignment operator (ref. http://www.scala-lang.org/files/archive/spec/2.11/06-expressions.html#assignment-operators) and that's why !== has the lowest precedence than all other infix operators. You may want to change the operator name to =!= or =/= (the latter is used in scalaz.Equal). Both should have the same precedence as ===.

ucbjrl commented 9 years ago

Resolved by 28f98d81bbce1e5ae70c9a667e4b51b03dd078d8. This resolves #395.