Loading ...
Sorry, an error occurred while loading the content.

Re: [peditors] Digest Number 745

Expand Messages
  • Christopher S. Fortin
    ... Then you;re going to love getting the 6th element of array foo with bar = 5[foo]; I *love* C :). Chris -- Christopher Fortin, Ph.D. EE, Scientist@BBN
    Message 1 of 1 , Sep 7, 2001
    • 0 Attachment
      > > # Also (since you asked :) consider
      > > #
      > > # if (NULL == myStrP) {break;}
      > > #
      > > # which should avoid (or at least cause a compiler error upon the
      > > # use of) the classic C error of mistyping "==" as "=".
      > >
      > > I know BUT my compiler is very smart so I am not doing it. It
      > > tells you if sees "if (a = b)". It made me lazy.
      >
      > Also, reading code like the fragment above has always been very
      > counterintuitive to me as it doesn't match with the way (most) people
      > communicate. Typically, you'd say "my balance is $5000" instead
      > of "$5000 is my balance".

      Then you;re going to love getting the 6th element of array foo with

      bar = 5[foo];

      I *love* C :).

      Chris


      --
      Christopher Fortin, Ph.D. EE, Scientist@BBN <parared@...>
      {all hands abandon froup. computer, eject log buo--NO CARRIER
    Your message has been successfully submitted and would be delivered to recipients shortly.