From: James Gray Date: 2008-07-25T05:15:00+09:00 Subject: Re: what is "p"? On Jul 24, 2008, at 3:09 PM, matu wrote: > matu wrote: > >> Doh! :) >> May I ask why? > > All right... I am starting to look like a 3y old why, why, why, > why...:) > But today I have some time, and I am playing around, and there is > something > else that surprises me a bit: > >>> "".class > => String >>> ''.class > => String >>> > > They are both String classes, but as we all know, they behave > differently. > How? They are both String objects and there is no difference between them. What is different is how you can define them. You can use "…" or '…' to construct String objects with different rules about how the content will be treated. James Edward Gray II