home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!pipex!warwick!bham!bhamvx!mccauleyba
- From: mccauleyba@vax1.bham.ac.uk (Brian McCauley)
- Subject: Re: char* to const char*&
- Sender: usenet@rs6000.bham.ac.uk (USENET News Service)
- Message-ID: <1992Dec11.175805.1@vax1.bham.ac.uk>
- Date: Fri, 11 Dec 1992 17:58:05 GMT
- Lines: 21
- References: <JPOLITO.92Dec11092330@sysgem1.encore.com>
- Organization: University of Birmingham
-
- In article <JPOLITO.92Dec11092330@sysgem1.encore.com>, jpolito@sysgem1.encore.com (Jonathan Polito) writes:
- > I am curious to what the current wisdom is on accepting char* as a
- > valid argument to a function expecting const char*& e.g.
-
- The net wisdom as distilled from a long discussion a few weeks back is that
- one can not allow a `char**' argument to a function wanting a `const char **'.
-
- There as a feeling that perhaps the language should allow a `char *' argument
- for a `const char * const *' argument.
-
- The reference situation is no different so the language should not (and to
- the best of my knowlwdge does not) allow a `char*' value for a `const char*&'
- argument but should (and I think does) allow one for a `const char * const &'
- argument.
- --
- \\ ( ) No Bullshit! | Email: B.A.McCauley@bham.ac.uk
- . _\\__[oo from | Voice: +44 21 471 3789 (home)
- .__/ \\ /\@ /~) /~[ /\/[ | Fax: +44 21 625 2175 (work)
- . l___\\ /~~) /~~[ / [ | Snail: 197 Harborne Lane,
- # ll l\\ ~~~~ ~ ~ ~ ~ | Birmingham, B29 6SS, UK
- ###LL LL\\ (Brian McCauley) | ICBM: 52.5N 1.9W
-