This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Readv/writev patch


On Wed, Aug 28, 2002 at 03:59:42PM +0100, Conrad Scott wrote:
>> I also don't like these C++ cast operators since the Plain-C casts
>>are doing quite the same but are way easier to read.  Perhaps I'm just
>>old-fashioned.
>
>I rather prefer the C++ cast operators since they're both clearer and
>safer: e.g.  using a const_cast guarantees that that all you're doing
>is removing the const-ness of something.  I've seen too many bugs
>before now where someone's added a cast (just to remove a const or
>something simple) and then changed the underlying object's type
>elsewhere and the cast still works with no complaint yet is now not
>doing the right thing at all.  If you're feeling determinedly
>old-fashioned I'll take them out but you will have to realise that it
>will be with great pain and suffering on my part :-)

Sorry, but I'm with Corinna on this one.  I'd rather keep the code
consistent.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]