This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] std::string(0);
On Tue, 2004-06-15 at 16:02, Daniel Frey wrote:
> Dhruv Matani wrote:
> > However, using "blah blah" as a pointer and dereferencing it like
> > "blah blah"[1] is something I have seen for the first time!
>
> Then you ain't seen nothing yet. Try:
>
> 0[""]
>
> ;)
Hey! This I was aware of, because I kind of knew that you can write:
int* a;
int index;
a[index] OR index[a], so knowing that you can write "blah"[0], you
mostly can write 0["blah"]! Silly, isn't it?
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html