Tuesday, February 16, 2010

Priority of Boolean operations

In X++ Boolean && and || operations have the same priority. That is not the case in other languages where && has higher priority than ||. So adding additional parenthesis to make sure that code works as expected is a good idea.
Example: (true || false && false) will be evaluated to false in X++, but in C# it will be evaluated to true.

6 comments:

  1. This post arrived in a timely passion! I can't believe it. I'd been searching on line for
    Email Templates. You did a really good job and yes i
    entirely agree that any template could make or break your business.
    Wonderful!

    My site :: email templates samples

    ReplyDelete
  2. It's awesome in favor of me to have a website, which is useful in favor of my know-how. thanks admin

    my web-site :: professional email signatures

    ReplyDelete
  3. Hello! I'm at work browsing your blog from my new iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the superb work!

    Here is my page; gmail email templates

    ReplyDelete
  4. It's the best time to make some plans for the long run and it's time to be happy.

    I have learn this post and if I could I desire to counsel you some
    attention-grabbing issues or suggestions.
    Maybe you can write subsequent articles regarding this article.

    I wish to read even more things approximately it!

    my website; http://desi.im/groups/expect-success-with-one-of-these-Email-templates-tips/

    ReplyDelete
  5. Wow, wonderful blog structure! How long have you
    been blogging for? you made blogging look easy.

    The total look of your website is fantastic, let alone the
    content!

    Here is my site; feature

    ReplyDelete
  6. І am really loving the theme/design of your web ѕite.
    Do you evеr run іnto any brοwser compatibility problеms?
    A couple of mу blοg audience hаve cоmplаined about my sіte not opeгating cοrгectly in Explorеr but
    looks gгeat in Firefoх. Do you have anу tips
    to help fix this problеm?

    Here is my wеb ρage - email wedding invitation templates

    ReplyDelete