[openbeos] Pointer or reference?

  • From: "Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx>
  • To: "OBOS" <openbeos@xxxxxxxxxxxxx>
  • Date: Fri, 26 Mar 2004 15:10:06 +0100

Hi,
this is a code-style question:
When should I use a pointer as a parameter and when should I use a reference?
Is the general convention that a pointer indicates that the passed information 
will be modified? But the BMessage in MessageReceived() is a pointer although 
it is not intended to be modified by the receiver.

Bye,
Waldemar

Other related posts: