Results 1 to 20 of 146

Thread: Episode 121 Discussion

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Jounin Cal_kashi's Avatar
    Join Date
    Apr 2004
    Location
    Silicon Valley
    Age
    42
    Posts
    792

    RE: Episode 121 Discussion

    Score(assertionfailure, points++);
    is perfectly legitimate if its a function call and not a header.
    No type declerations are neccessary, this function would just assign those points to that person.
    If that person is the only one who currently has points then the variable points is unique to him and
    points++ is valid, or this could only a small part of several lines of code, being the only relevant one to
    the current discussion.
    Point being its not invalid without the rest of you having enough information to show that its invalid.
    When man invented the bicycle he reached the peak of his attainments. Here was a machine of precision and balance for the convenience of man. And (unlike subsequent inventions for man's convenience) the more he used it, the fitter his body became. Here, for once, was a product of man's brain that was entirely beneficial to those who used it, and of no harm or irritation to others. Progress should have stopped when man invented the bicycle. ~Elizabeth West, Hovel in theHills

  2. #2

    RE: Episode 121 Discussion

    Originally posted by: Cal_kashi
    Score(assertionfailure, points++);
    is perfectly legitimate if its a function call and not a header.
    No type declerations are neccessary, this function would just assign those points to that person.
    If that person is the only one who currently has points then the variable points is unique to him and
    points++ is valid, or this could only a small part of several lines of code, being the only relevant one to
    the current discussion.
    Point being its not invalid without the rest of you having enough information to show that its invalid.
    But why would he have the first parameter to be assertn if hes the only one with any score?
    Its not invalid, but illogical.

    But yeah, its obviously impossible to know if its invalid or not without having more information. The reason i first mentioned it is because its a bit of a pet peeve for me with people who add parts of "code" like that in forums.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •