[Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour

Meinrad Recheis meinrad.recheis at gmail.com
Thu Mar 5 16:45:51 EST 2009


On Thu, Mar 5, 2009 at 10:03 PM, Tomas Matousek <
Tomas.Matousek at microsoft.com> wrote:

> I'm going to use single quotes for formatting CLR strings via inspect.
> "clr:" prefix is too long and it gets in your way when working mostly with
> CLR strings.
>
> >>> "Some string"
> => "Some string"
> >>> "Some string".to_clr_string
> => 'Some string'
>
> Sounds good?


The obvious advantage is that this representation is a valid ruby
expression.
-- henon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090305/e1a46b80/attachment.html>


More information about the Ironruby-core mailing list