Results 1 to 3 of 3

Thread: return types [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    return types [RESOLVED]

    Object Object::Foo(); vs Object& Object:Foo()

    What is the difference between returning and object and returning a reference to the object? If there is a difference, when would you use each case?
    Last edited by Darkwraith; Jun 8th, 2004 at 04:42 PM.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

Posting Permissions

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



Click Here to Expand Forum to Full Width