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

2009-03-05 Thread Tomas Matousek
This is not about syntax. This is just what System::String#inspect prints out. Tomas -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tinco Andringa Sent: Thursday, March 05, 2009 6:26 PM To: ironruby-core@rubyforge.o

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

2009-03-05 Thread Tinco Andringa
Wouldn't using different syntax especially for clr just amount to creating a new language instead of implementing Ruby on the dlr? (Not to mention a language that's not very intuitive) On Thu, Mar 5, 2009 at 23:00, Orion Edwards wrote: > I like backticks more than single quotes, but ideally you'd

Re: [Ironruby-core] Typeof ??

2009-03-05 Thread Tomas Matousek
IMyInterface.to_clr_type should work. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Thursday, March 05, 2009 1:59 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Typeof ?? Having another go at some WCF s

Re: [Ironruby-core] Typeof ??

2009-03-05 Thread Ivan Porto Carrero
IMyInterface.to_clr_type --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim On Thu, Mar 5, 2009 at 10:59 PM, Orion Edwards wrote: > Having another go at some WCF stuff again. > I hav

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

2009-03-05 Thread Orion Edwards
I like backticks more than single quotes, but ideally you'd just have the same quotes and make them red or something for clr strings. On Fri, Mar 6, 2009 at 10:21 AM, Pete Bacon Darwin < bacondar...@googlemail.com> wrote: > How about back ticks? `Some string`? > > Since ruby can have single quote

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

2009-03-05 Thread Tomas Matousek
Ruby uses back-ticks for shell strings, so it doesn't seem to be more obvious that the value is CLR string. I agree it's not blatant. It's a small hint that should help you to distinguish the types. CLR strings will have most of the methods Ruby string have (except for mutable ones) so the diffe

Re: [Ironruby-core] possible problem on mono

2009-03-05 Thread Jb Evain
On 3/5/09, Jb Evain wrote: > On 3/5/09, Rafael Rosa wrote: > > And "iirb" isn't working: > > > I can reproduce that. It's another issue that is either in gmcs or in > the branch. I'll investigate. That's an issue with the branch, as IronRuby compiled from origin with `rake compile mono=1` do

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

2009-03-05 Thread Meinrad Recheis
Back ticks have a different meaning in ruby. They denote code to be executed on the system shell. -- henon On Thu, Mar 5, 2009 at 10:21 PM, Pete Bacon Darwin < bacondar...@googlemail.com> wrote: > How about back ticks? `Some string`? > > Since ruby can have single quote string literals it might n

[Ironruby-core] Typeof ??

2009-03-05 Thread Orion Edwards
Having another go at some WCF stuff again. I have a C# method that accepts a type. I want to pass it an interface. interface IMyInterface; public void DoStuff( Type t ); DoStuff( typeof(IMyInterface) ); >From the ruby side, I'm importing both IMyInterface and DoStuff from C#, I just want to call

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

2009-03-05 Thread Meinrad Recheis
On Thu, Mar 5, 2009 at 10:03 PM, Tomas Matousek < tomas.matou...@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" > >>>

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

2009-03-05 Thread Pete Bacon Darwin
How about back ticks? `Some string`? Since ruby can have single quote string literals it might not be that obvious that 'Some string' it is not a normal Ruby string. Pete -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf O

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

2009-03-05 Thread Tomas Matousek
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? Tomas -Original Message- From:

Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines

2009-03-05 Thread Shri Borde
It sounds like an easy fix, so we will try to get it fixed in the next few days. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Thursday, March 05, 2009 6:17 AM To: ironruby-core@rubyforge.org S

Re: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ?

2009-03-05 Thread Jimmy Schementi
IronRuby has RubyUtils.MangleName/TryUnmangleName in /Merlin/Main/Languages/Ruby/Ruby/Runtime/RubyUtils.cs. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, March 04, 2009 2:57 AM To: ironruby-core@rubyforge.o

Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines

2009-03-05 Thread Curt Hagenlocher
I recommend that you file this as a bug report against the DLR at http://www.codeplex.com/dlr -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Jb Evain Sent: Thursday, March 05, 2009 5:32 AM To: ironruby-core@rubyforge

Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines

2009-03-05 Thread Jb Evain
On 3/3/09, Jb Evain wrote: > I spent some time investigating why on Mono ir.exe (last git revision) > doesn't print the result of evaluations. > > The issue lies in the processing of new lines in > Microsoft.Scripting.Core.Hosting.Shell.CommandLine. > > The code is appending \n as terminating

Re: [Ironruby-core] possible problem on mono

2009-03-05 Thread Jb Evain
Hey, On 3/5/09, Rafael Rosa wrote: > And "iirb" isn't working: I can reproduce that. It's another issue that is either in gmcs or in the branch. I'll investigate. -- Jb Evain ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyfo

Re: [Ironruby-core] possible problem on mono

2009-03-05 Thread Rafael Rosa
Thanks, I tought it was a related problem. More google, less complaining :) I'm taking a look at it now, I have .NET people meeting this weekend and I want to show them IronRuby. Cheers -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mail