• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Precedence Question

 
Varun Chopra
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can one provide with an expression which would prove that == has less precedence than <=?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49812
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, try it, and you will see it won't compile with the wrong () in.
 
Varun Chopra
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm Thanks Campbell.

This works:



This does not work

 
Campbell Ritchie
Sheriff
Pie
Posts: 49812
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic