[RFC] std::string(0);

Dhruv Matani dhruvbird@gmx.net
Wed Jun 16 12:17:00 GMT 2004


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




More information about the Libstdc++ mailing list