Re: std::string, C strings and c_str()
From: Alwyn (dt015a1979_at_mac.com.invalid)
Date: 11/02/04
- Next message: Francis Glassborow: "Re: C recursion question"
- Previous message: Jerry Coffin: "Re: help"
- In reply to: Gianni Mariani: "Re: std::string, C strings and c_str()"
- Next in thread: Anand Hariharan: "Re: std::string, C strings and c_str()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 02 Nov 2004 17:02:16 +0000
In article <h7qdnRjmG8xccxjcRVn-iQ@speakeasy.net>, Gianni Mariani
<gi2nospam@mariani.ws> wrote:
>
> No argument from me. I would get rid of the nonsense API's is at all
> possible.
If you inherit a library of any complexity with an inconvenient API,
and it works, don't try to fix the API - you will almost inevitably
break it. Providing a simple interface class may well be the best
solution in the short term; with luck in the long term, you may be able
to rewrite the library, but that is never a simple undertaking.
Working code is a rare and precious commodity; you amend it at your own
risk.
Alwyn
- Next message: Francis Glassborow: "Re: C recursion question"
- Previous message: Jerry Coffin: "Re: help"
- In reply to: Gianni Mariani: "Re: std::string, C strings and c_str()"
- Next in thread: Anand Hariharan: "Re: std::string, C strings and c_str()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]