Re: when to use "new"
From: Rv5 (rmolney_at_adelphia.net)
Date: 11/15/04
- Next message: David Harmon: "Re: Removing elements from std::vector."
- Previous message: Sam: "Re: when to use "new""
- In reply to: John Harrison: "Re: when to use "new""
- Next in thread: Ivan Vecerina: "Re: when to use "new""
- Reply: Ivan Vecerina: "Re: when to use "new""
- Reply: John Harrison: "Re: when to use "new""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 15 Nov 2004 00:15:59 -0800
I admit that with java I didnt really think of pointers that much, even
though I knew they were being used behind the scenes. I do see the value in
them, but it seems to me that they get used a lot when it isnt necessary.
That said, and back to a spin off of my original question, if I do need just
a pointer to an object and not an object itself, would i use "new" in that
case? For example:
myobject *pointer = new myobject
Just trying to figure out possible scenarios.
ross
> Same advice again, if you don't see the need for pointers don't use them.
> They are tricky to use correctly so avoid them if you can. But I find it
> surprising that you don't see the need if you have been programming Java,
> in Java almost everything is a pointer.
>
> john
>
>
- Next message: David Harmon: "Re: Removing elements from std::vector."
- Previous message: Sam: "Re: when to use "new""
- In reply to: John Harrison: "Re: when to use "new""
- Next in thread: Ivan Vecerina: "Re: when to use "new""
- Reply: Ivan Vecerina: "Re: when to use "new""
- Reply: John Harrison: "Re: when to use "new""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|