
On 4 May 2011 10:44, Denis Shevchenko <for.dshevchenko@gmail.com> wrote:
I'm not sure what your code looks like, but IMO bare pointers are
perfectly fine in certain situations. Like this one, where no ownership issues are present.
IMHO, if program *REQUIRES* bare pointers - this program, probably, should be refactored.
If it isn't involved with ownership, what is wrong with raw pointers? I find it far more flexible to separate the concern of ownership from usage.
For example, I don't use bare pointers in my code. Never (except operator new() result). I write system-oriented programs and libraries (network, protocols, database, etc.), but I never need bare pointers.
What you do is far less interesting to me than why you do it. Is it just dogma, or is there some underlying reason? -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404