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

Re: [XP] Re: Warning for unreferenced Java parameters? (OFFTOPIC)

Expand Messages
  • Mark Wilden
    ... From: ... In C++, unlike Java, you can leave off the name of the parameter, to indicate your intentions in code, which is always
    Message 1 of 1 , Aug 14, 2000
      ----- Original Message -----
      From: <wconrad@...>
      >
      > I'd prefer not to have an unreferenced parameter warning in Java.
      > Unreferenced parameters are a common occurance in certain patterrns
      > (like "template method").

      In C++, unlike Java, you can leave off the name of the parameter, to
      indicate your intentions in code, which is always preferable to lint
      comments:

      int foo(int)
      {
      // parameter is unused, so don't name it
      }
    Your message has been successfully submitted and would be delivered to recipients shortly.