Re: Can you fix this program? : C++ Dynamic Array Problems
- From: "Russell Mangel" <russell@xxxxxxxxx>
- Date: Tue, 7 Mar 2006 12:47:25 -0800
"Carl Daniel >
If you're going to simply expose the inner array, there's little point in
even making a class since a client can simply run roughshod all over your
array once you've returned a pointer. I'd reconsider this design.
Is there some way I could return this (read-only), so the clients can not
change the list?
Thanks,
Russell Mangel
.
- Follow-Ups:
- Re: Can you fix this program? : C++ Dynamic Array Problems
- From: Bruno van Dooren
- Re: Can you fix this program? : C++ Dynamic Array Problems
- References:
- Can you fix this program? : C++ Dynamic Array Problems
- From: Russell Mangel
- Re: Can you fix this program? : C++ Dynamic Array Problems
- From: Carl Daniel [VC++ MVP]
- Can you fix this program? : C++ Dynamic Array Problems
- Prev by Date: Re: Can you fix this program? : C++ Dynamic Array Problems
- Next by Date: Mixed mode dll
- Previous by thread: Re: Can you fix this program? : C++ Dynamic Array Problems
- Next by thread: Re: Can you fix this program? : C++ Dynamic Array Problems
- Index(es):
Relevant Pages
|