Article View: comp.std.c
Article #217Re: const T **
From: Marc WANDSCHNEIDER
Date: Wed, 15 Apr 1992 01:45
Date: Wed, 15 Apr 1992 01:45
32 lines
1336 bytes
1336 bytes
In article <1611@imec.UUCP> donne@imec.be (Werner Donne) writes:
>int
>main(void)
>
>{
>
> const char **a;
> char **b;
>
> a = b;
>
> return 0;
>
>}
>
>
>Why is the assignment illegal?
As far as I can see, it isn't. I ran it on cc for the NeXTs, gcc
running under SunOS 4.1.1 and as well, on MSC and Borland C++ 3.0 on my
PC in front of me... Not one compiler even complained about the assignment.
Perhaps you have a non standard compiler...?
I'd be interested to see if this really IS an error, or just something
that your compiler barfed on....
--
storm@cs.mcgill.ca McGill University C program run. Run
Marc Wandschneider Montreal, CANADA Program run! PLEASE!
Ever wonder how Worf got to be Security Officer on the Enterprise when the
Capt gets kidnapped from the bridge every two episodes and Troy Beats him up?
Technical Details
Message-ID:
<1992Apr15.014523.5364@cs.mcgill.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!homer.cs.mcgill.ca!stormReferences:
<1611@imec.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!homer.cs.mcgill.ca!storm From: storm@cs.mcgill.ca (Marc WANDSCHNEIDER) Newsgroups: comp.std.c Subject: Re: const T ** Keywords: const Message-ID: <1992Apr15.014523.5364@cs.mcgill.ca> Date: 15 Apr 92 01:45:23 GMT References: <1611@imec.UUCP> Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: McGill University, Montreal, Canada Lines: 32