Re: [Ironruby-core] IronRuby v2Release xbuild is failing

2011-10-05 Thread Curt Hagenlocher
Is v2Release intended to target CLRv2? If so, this error is because that version of C# and the BCL don't support covariance for IEnumerable. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Jimmy Schementi Sent:

Re: [Ironruby-core] IronRuby v2Release xbuild is failing

2011-10-05 Thread Curt Hagenlocher
at 11:17 AM, Curt Hagenlocher cu...@microsoft.com wrote: Is v2Release intended to target CLRv2? If so, this error is because that version of C# and the BCL don't support covariance for IEnumerable. I believe that v2Release targets the 3.5 framework (is that the same as CLRv2?), but someone can

Re: [Ironruby-core] Compiling on Mono?

2010-10-25 Thread Curt Hagenlocher
References in project files can be conditional. I don't have an example handy, but unless things have changed in the last year :), the project files should already have a conditional dependency on the Silverlight assemblies. From: ironruby-core-boun...@rubyforge.org

Re: [Ironruby-core] Why does attr_accessor create a property, but method is just a method?

2010-07-22 Thread Curt Hagenlocher
I believe this works as designed. The problem is that Ruby doesn't otherwise distinguish syntactically between a property and a method with no parameters. Imagine that you're in tooling such as Visual Studio. By default, the values of properties are automatically displayed in the debugger and

Re: [Ironruby-core] Why does attr_accessor create a property, but method is just a method?

2010-07-22 Thread Curt Hagenlocher
to understand good interop practices between my ruby and C# and WPF code, but I can't seem to make anything other than attr_accessor work. Brian On Thu, Jul 22, 2010 at 9:17 AM, Curt Hagenlocher cu...@microsoft.commailto:cu...@microsoft.com wrote: I believe this works as designed. The problem

[Ironruby-core] IronRuby on your Phone

2010-03-24 Thread Curt Hagenlocher
You might like Tomas' latest blog entry: http://blog.tomasm.net/2010/03/21/ironruby-on-your-phone/ -Curt ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] ir / iirb on Mono

2010-03-12 Thread Curt Hagenlocher
The command history on Windows when running ir.exe is being provided by the Windows console subsystem; it's not actually part of IronRuby. I imagine that Mono's readline library could be used to give the same effect on non-Windows platforms. -Original Message- From:

Re: [Ironruby-core] dealing with TFS

2010-01-23 Thread Curt Hagenlocher
I know some people who like tfpt online (from TFS Power Toolshttp://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0displaylang=en) for the purpose of adding a bunch of new files to a preexisting enlistment. I've never used it myself. From:

Re: [Ironruby-core] 2d array

2009-11-29 Thread Curt Hagenlocher
You can create an array using the BCL by calling Array.CreateInstance. From C#, it would look like this: Array.CreateInstance(typeof(object), 5, 6)); // Equivalent to new object[5,6] I don't have IronRuby on this machine and don't want to guess at the right syntax. From:

Re: [Ironruby-core] Ruby and ObservableCollection

2009-10-22 Thread Curt Hagenlocher
ObservableCollectionT is an IList, so it should pick up Enumerable support through IListOps, no? From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Jimmy Schementi Sent: Thursday, October 22, 2009 10:41 AM To: Hans Hugli;

Re: [Ironruby-core] CallSiteStorage for [RubyMethod]

2009-10-19 Thread Curt Hagenlocher
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shay Friedman Sent: Monday, October 19, 2009 2:30 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] CallSiteStorage for [RubyMethod] Thanks so much Curt for the detailed reply! Shay. On Sun, Oct 18, 2009 at 3:52 PM, Curt Hagenlocher cu

Re: [Ironruby-core] CallSiteStorage for [RubyMethod]

2009-10-18 Thread Curt Hagenlocher
A dynamic call site is an object that takes a certain number of arguments and a kind of description of how to combine those arguments into a result. The description (also known as the call site binder) generates code that is stored in the call site and keyed on some property of the arguments --

Re: [Ironruby-core] Pull

2009-09-17 Thread Curt Hagenlocher
It looks like the symbol CLR2 hasn’t been defined. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, September 17, 2009 12:23 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Pull Something went

Re: [Ironruby-core] Can I get method expresion tree by method name?

2009-08-18 Thread Curt Hagenlocher
Basically correct - you'd need to build the expression tree by hand. IronRuby does, of course, generate expression trees, but even if there were a convenient way to get at them, they'd be full of scopes and closures and other kinds of language-specific cruft. Also, under .NET 3.5, the

Re: [Ironruby-core] COM security question

2009-08-12 Thread Curt Hagenlocher
The CoInitializeSecurity settings are thread-specific. If you create a new thread and do all the COM work on that, do you get the same error? I seem to recall discovering that there was something about the AssemblyResolve hook that forced COM to be initialized. From:

Re: [Ironruby-core] COM security question

2009-08-12 Thread Curt Hagenlocher
Ah, I'm an idiot. CoInitializeSecurity is per-process, not per thread. I think this problem is related to the one described at http://lists.ironpython.com/pipermail/users-ironpython.com/2008-April/006941.html. If that's so, it suggests that loading the assembly manually with Assembly.Load

Re: [Ironruby-core] COM security question

2009-08-12 Thread Curt Hagenlocher
of this, I need require 'mscorlib' Will that call AssemblyResolve anywhere along the way itself? On Thu, Aug 13, 2009 at 3:29 PM, Curt Hagenlocher cu...@microsoft.commailto:cu...@microsoft.com wrote: Ah, I'm an idiot. CoInitializeSecurity is per-process, not per thread. I think this problem

Re: [Ironruby-core] COM security question

2009-08-12 Thread Curt Hagenlocher
Apparently, the [STAThread] on the Main of ir.exe is the source of the problem. It's forcing the runtime to initialize security. You'll need to use a custom host for this scenario. :( From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Curt Hagenlocher
/carrero) On Mon, Jul 20, 2009 at 4:10 PM, Curt Hagenlocher cu...@microsoft.commailto:cu...@microsoft.com wrote: This should work under desktop WPF (though not under Silverlight) because IronRuby objects implement ICustomTypeDescriptor. But consider the following code: class Drive def letter

Re: [Ironruby-core] IR 0.6.0 error loading a c# class

2009-07-08 Thread Curt Hagenlocher
It would be useful to supply the exact error message, but this is almost certainly a CLR loader issue. You can't really treat CLR assemblies like Ruby source files; the loader has very specific rules and its semantics don't match. In particular, loading assemblies from an explicitly-specified

Re: [Ironruby-core] Accessing Enumeration in IronRuby

2009-06-16 Thread Curt Hagenlocher
You're close; you want System::Drawing::Color.DeepPink. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Tuesday, June 16, 2009 9:04 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core]

Re: [Ironruby-core] engine.ExecuteFile gives errors

2009-06-12 Thread Curt Hagenlocher
Is it possible that you've saved the file as UTF-8 or Unicode? -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Wednesday, June 10, 2009 9:55 AM To: ironruby-core@rubyforge.org Subject:

Re: [Ironruby-core] Code Review: FixNonPublicNested

2009-06-12 Thread Curt Hagenlocher
All of yesterday's changes :) look good. -Original Message- From: Tomas Matousek Sent: Thursday, June 11, 2009 6:45 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: FixNonPublicNested tfpt review /shelveset:FixNonPublicNested;REDMOND\tomat

Re: [Ironruby-core] engine.ExecuteFile gives errors

2009-06-12 Thread Curt Hagenlocher
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Friday, June 12, 2009 10:52 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] engine.ExecuteFile gives errors Curt Hagenlocher wrote: Is it possible that you've saved the file as UTF-8 or Unicode? Well I

Re: [Ironruby-core] How to fire IronRuby Method from C#

2009-06-10 Thread Curt Hagenlocher
...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Tuesday, June 09, 2009 8:37 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] How to fire IronRuby Method from C# Curt Hagenlocher wrote: Yes, sorry, you're right -- it's Engine.Operations (but the name

Re: [Ironruby-core] How to fire IronRuby Method from C#

2009-06-09 Thread Curt Hagenlocher
If this is C# 4 (as you've suggested in another email), you should be able to say object personClass = engine.Runtime.Globals.GetVariable(Person); dynamic person = engine.ObjectOperations.CreateInstance(personClass); person.greet(); -Original Message- From:

Re: [Ironruby-core] How to fire IronRuby Method from C#

2009-06-09 Thread Curt Hagenlocher
-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Tuesday, June 09, 2009 7:31 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] How to fire IronRuby Method from C# Curt Hagenlocher wrote: If this is C# 4 (as you've suggested

Re: [Ironruby-core] something has changed

2009-06-06 Thread Curt Hagenlocher
It would be good to be more specific about the example. Consider class Foo { public void Bar(int, object); public void Bar(int, string); } If I call Foo.new.Bar 1, nil, then this is an ambiguous call and you should be forced to specify which overload you want. In statically-typed

Re: [Ironruby-core] Code Review: ProGenFix

2009-06-06 Thread Curt Hagenlocher
Changes look good overall. I'm not sure that Type.IsProtected() is an intuitive name; maybe Type.IsNested() would be clearer? -Original Message- From: Tomas Matousek Sent: Saturday, June 06, 2009 12:51 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc:

Re: [Ironruby-core] Code Review: ProGenFix

2009-06-06 Thread Curt Hagenlocher
Ah, I see. Still, something strikes me as odd about the name, but I don't feel strongly about it. -Original Message- From: Tomas Matousek Sent: Saturday, June 06, 2009 3:57 PM To: Curt Hagenlocher; IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core@rubyforge.org

Re: [Ironruby-core] Code Review: LazyMethods

2009-06-05 Thread Curt Hagenlocher
Looks good overall. Should RubyContext.CallSiteCreated be ThreadLocal? If not, its use by CallSiteTracer looks not-entirely-safe. The variable name parantScope in RubyOps.CreateMethodScope is typoed. -Original Message- From: Tomas Matousek Sent: Thursday, June 04, 2009 3:32 PM To:

Re: [Ironruby-core] Code Review: ClrInteropBugFixes

2009-06-02 Thread Curt Hagenlocher
Looks good! From: Tomas Matousek Sent: Monday, June 01, 2009 7:06 PM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core@rubyforge.org Subject: RE: Code Review: ClrInteropBugFixes Adding one more bug fix:

Re: [Ironruby-core] Code Review: VisibilityFixes1

2009-06-02 Thread Curt Hagenlocher
Looks good. One small quibble: the comment in RubyModule.ForEachMember visit the member even if it doesn't have the right visibility so that any overridden member with the right visibility won't later be visited isn't quite right as the member isn't actually being visited; it's just marked that

Re: [Ironruby-core] [ATTN] IronRuby CTP for .NET 4.0 Beta 1

2009-05-21 Thread Curt Hagenlocher
The Developer Division source tree was branched over a month ago in preparation for the beta release. Ruby and DLR development continued on the “head” branch, while stabilization and fixes were applied to the “beta 1” branch. Because of this, there’s some chance that changes have been made to

Re: [Ironruby-core] Code Review: NoAdaptive

2009-05-21 Thread Curt Hagenlocher
Looks good -Original Message- From: Tomas Matousek Sent: Thursday, May 21, 2009 3:33 PM To: IronRuby External Code Reviewers; Rowan Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: NoAdaptive tfpt review /shelveset:NoAdaptive;REDMOND\tomat Moves

Re: [Ironruby-core] aaah yes ... clr interop

2009-05-14 Thread Curt Hagenlocher
In principle, this is absolutely something that could be done (though I wouldn’t expect we would do it any time soon). *but*, this doesn’t do what I think you want. Previously-compiled calls to SomeClass.MyMethod won’t actually end up going to Inheritor.MyMethod even if the object is of type

Re: [Ironruby-core] more interop questions

2009-05-13 Thread Curt Hagenlocher
, May 13, 2009 2:33 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] more interop questions But the call to Console.WriteLine will still be dynamic in that case. We still need Foo to implement IDynamicMetaObjectProvider if we need the call to Bar to be dynamic. 2009/5/13 Curt

Re: [Ironruby-core] interop question

2009-05-12 Thread Curt Hagenlocher
We can’t apply all Ruby standards when we travel back to staticland. When you define and use a Ruby class, we need to create a static CLR type to represent that class. This underlying type is constrained by what can be done with CLR types; and in particular, it’s structure is immutable. So we

Re: [Ironruby-core] interop question

2009-05-12 Thread Curt Hagenlocher
Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Tue, May 12, 2009 at 4:49 PM, Curt Hagenlocher cu...@microsoft.commailto:cu...@microsoft.com wrote: We can’t apply all Ruby standards when we travel back

Re: [Ironruby-core] Building expressions

2009-05-05 Thread Curt Hagenlocher
Of course you should be able to build the expression tree manually – though even here, you may have trouble under .NET 3.5 as a result of the duplicated namespace. (That issue goes away with .NET 4.) From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On

Re: [Ironruby-core] clr events in ruby

2009-05-04 Thread Curt Hagenlocher
I believe that this should work, but the name would need to be Rubified as add_my_event. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mark Ryall Sent: Monday, May 04, 2009 6:02 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] clr

Re: [Ironruby-core] clr events in ruby

2009-05-04 Thread Curt Hagenlocher
experiment1.rb:90 On Mon, May 4, 2009 at 11:25 PM, Curt Hagenlocher cu...@microsoft.commailto:cu...@microsoft.com wrote: I believe that this should work, but the name would need to be Rubified as add_my_event. From: ironruby-core-boun...@rubyforge.orgmailto:ironruby-core-boun...@rubyforge.org

Re: [Ironruby-core] Clr Interop and private member variables

2009-05-04 Thread Curt Hagenlocher
Make it protected instead of private? From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Monday, May 04, 2009 4:32 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Clr Interop and private member variables I have the

Re: [Ironruby-core] Clr Interop and private member variables

2009-05-04 Thread Curt Hagenlocher
by default is not the best philosophy... On Tue, May 5, 2009 at 11:34 AM, Curt Hagenlocher cu...@microsoft.commailto:cu...@microsoft.com wrote: Make it protected instead of private? ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http

Re: [Ironruby-core] Implementing get_Item in Ruby for access in .NET

2009-04-29 Thread Curt Hagenlocher
I don't think there's any attempt right now to identify an indexer when overriding virtual methods. This means that the normal Rubification rules kick in and you get def item key end def item= key, value end The second of these, of course, isn't usable from within Ruby -- though I think it

Re: [Ironruby-core] [IronPython] Telling .NET classes from Python objects

2009-04-28 Thread Curt Hagenlocher
I'd probably pick IDynamicMetaObjectProvider as the signifier of a dynamic type. Ruby and Python types that don't implement this interface aren't as dynamic as types that do -- even built-in ones -- because they won't support dynamic binding from other languages. And all user-defined types

Re: [Ironruby-core] Console.Writeline - 2147483647 arguments?

2009-04-27 Thread Curt Hagenlocher
And in case it's not obvious, the CLR-Ruby casing/name-translation rules are 1) CLR namespaces and interfaces must be capitalized as they are mapped onto Ruby modules 2) CLR classes must be capitalized as they are mapped onto Ruby classes 3) CLR methods that you call may either retain their

Re: [Ironruby-core] Review: File.chmod

2009-04-03 Thread Curt Hagenlocher
The comment // TODO: implement this correctly for windows could probably be removed; it's hard to envision chmod doing anything differently under Windows than what you've already implemented. From: Shri Borde Sent: Friday, April 03, 2009 10:42 AM To: IronRuby External Code Reviewers Cc:

Re: [Ironruby-core] How to instanciate a System::String[] from IronRuby?

2009-04-02 Thread Curt Hagenlocher
I don't know if it's the easiest way, but this should work as a conversion: x = ['a', 'b', 'c'] System::Array[System::String].new(x.map { |s| s.to_s.to_clr_string }) (Obviously, if you know that the elements are already Ruby strings, you can omit the to_s.) From:

Re: [Ironruby-core] defined?(xxx) behaves differently when called from Silverlight

2009-04-01 Thread Curt Hagenlocher
It seems to me that this misses the most important part of the original report: The same call under ir.exe will work as expected in MRI. Presumably, System::Windows::Forms doesn't exist in MRI, either :P -Original Message- From: ironruby-core-boun...@rubyforge.org

Re: [Ironruby-core] lol.. google undo send definitely is a fad

2009-03-31 Thread Curt Hagenlocher
No, the retraction is a different (and thoroughly retarded) feature. You can actually create a send rule that applies a delay based on all sorts of criteria. See http://ironcurt.typepad.com/p/sendrule.png for a screen shot of the rule. The retraction isn't a totally ridiculous feature, but I

Re: [Ironruby-core] Code Review: ClrPrimitives2

2009-03-24 Thread Curt Hagenlocher
Looks good. The changes for the StringFormatter sites are much needed! The test PythonInterop5 doesn't look complete -- there's no assertion. It seems odd that CharOps would include Enumerable. Is that because a char looks like a string that can never have a length != 1? You don't want to use

Re: [Ironruby-core] undefined Method 'downcase'

2009-03-19 Thread Curt Hagenlocher
Out of curiosity, why are you passing a string to this method through the hosting interface instead of just passing an int? What does the calling code look like? -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of

Re: [Ironruby-core] Code Review: DMO1

2009-03-17 Thread Curt Hagenlocher
In RubyClass.cs, there's an incorrect parameter passed to SetWrongNumber: var actualArgs = RubyMethodGroupBase.NormalizeArguments(metaBuilder, args, SelfCallConvention.NoSelf, false, false); if (actualArgs.Length == 1) { ... } else {

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:

Re: [Ironruby-core] A few things about system and IO.popen - what's the current status ?

2009-03-04 Thread Curt Hagenlocher
I don't know how the semantics differ from Ruby's, but someone interested in doing this could probably adapt the IronPython source code. These functions should be in nt.cs. :) From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek

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

2009-03-03 Thread Curt Hagenlocher
This mismatch doesn't exist in Python because Python's string semantics are largely compatible with .NET's string semantics. As a result, Python can actually use .NET's strings as Python strings. Ruby strings, unfortunately, are mutable, which means that IronRuby has to use a different type

Re: [Ironruby-core] Code Review: MoreProtocols8

2009-02-17 Thread Curt Hagenlocher
Ruby changes look good. From: Dino Viehland Sent: Tuesday, February 17, 2009 2:27 PM To: Tomas Matousek; IronRuby External Code Reviewers; Rowan Code Reviewers; DLR Code Reviews Cc: ironruby-core@rubyforge.org Subject: RE: Code Review: MoreProtocols8 Python changes look good. From: Tomas

Re: [Ironruby-core] Code Review: ErrorMessageFix

2009-02-09 Thread Curt Hagenlocher
Change looks good. -Original Message- From: Tomas Matousek Sent: Sunday, February 08, 2009 1:06 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: ErrorMessageFix tfpt review /shelveset:ErrorMessageFix;REDMOND\tomat Fixes binder error

Re: [Ironruby-core] how to initialize iron ruby from c#

2009-02-08 Thread Curt Hagenlocher
Did you add a reference to IronRuby.Libraries.dll to your C# application? From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Meinrad Recheis Sent: Sunday, February 08, 2009 3:38 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] how

Re: [Ironruby-core] how to initialize iron ruby from c#

2009-02-08 Thread Curt Hagenlocher
Wow, this list is laggy -- I posted this almost 4 hours ago! Sorry, I obviously didn't read your last paragraph. :( From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Sunday, February 08, 2009 7:31 AM To: ironruby-core

Re: [Ironruby-core] Code Review: StackTraces1

2009-02-07 Thread Curt Hagenlocher
Looks good. -Original Message- From: Tomas Matousek Sent: Friday, February 06, 2009 6:13 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: StackTraces1 tfpt review /shelveset:StackTraces1;REDMOND\tomat Removes dependency on _stub_ special

Re: [Ironruby-core] DLR hosting

2009-01-30 Thread Curt Hagenlocher
It's part of Tomas' thread-safety work. To enumerate the methods safely, you need to ensure that another thread isn't modifying the method list. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, January 30, 2009

Re: [Ironruby-core] progress on ironrubymvc :)

2009-01-30 Thread Curt Hagenlocher
Microsoft.Scripting.Core.dll is effectively a subset of .NET 4.0's System.Core.dll, which is why there's so much overlap in the types. For IronPython, we've worked around this by creating an automated process to rename all the types from System.* to Microsoft.*. But this doesn't work as well

Re: [Ironruby-core] Code Review: MethodGroups2

2009-01-14 Thread Curt Hagenlocher
Changes look good. The xmldoc summaries on RubyMethodGroupInfo, RubyLibraryMethodInfo and RubyMethodGroupBase need to be updated to reflect the refactoring. -Original Message- From: Tomas Matousek Sent: Wednesday, January 14, 2009 12:12 PM To: IronRuby External Code Reviewers Cc:

Re: [Ironruby-core] Code Review: GenericMethodsAndOverloads

2009-01-13 Thread Curt Hagenlocher
Changes look good overall. In RubyMethodGroupInfo.TryBindGenericParameters, an empty set of types will return all methods in MethodBases whether or not they're generic. What's the reason for this behavior? There's a chunk of code that was added to Utils.cs that's indented too far.

Re: [Ironruby-core] Code Review: Indexers2

2009-01-13 Thread Curt Hagenlocher
Okay, the indentation problem in Utils.cs is fixed. :) Changes are good. -Original Message- From: Tomas Matousek Sent: Tuesday, January 13, 2009 4:36 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: Indexers2 tfpt review

Re: [Ironruby-core] Calling overloaded methods

2009-01-09 Thread Curt Hagenlocher
You'll need to build a CLR array rather than a Ruby array. require 'mscorlib' System::Array.create_instance(System::Object.to_clr_type, 2) o = System::Array.create_instance(System::Object.to_clr_type, 2) o[0] = 3 o[1] = 4 You can monkey-patch Array and add this as a helper: class Array def

Re: [Ironruby-core] Code Review: InitAndScopes6

2009-01-06 Thread Curt Hagenlocher
Awesome! Ruby changes are good (other than a typo bidning in a comment in HostingTests.cs :)). From: Tomas Matousek Sent: Tuesday, January 06, 2009 11:17 AM To: IronRuby External Code Reviewers; DLR Code Reviews Cc: ironruby-core@rubyforge.org Subject: Code Review: InitAndScopes6 tfpt review

Re: [Ironruby-core] Code Review: Thread.critical

2009-01-05 Thread Curt Hagenlocher
The implementation of ThreadOps._CriticalMonitor and ThreadOps._IsInCriticalRegion as class-level fields will cause state information to leak between ScriptRuntimes. These should probably be put on the RubyContext, which can either be done directly or by using

Re: [Ironruby-core] Problems with Mutex and ConditionVariable under IronRuby

2009-01-02 Thread Curt Hagenlocher
It looks like ConditionVariable.wait isn't implemented in a way that's consistent with the spec. Please file a bug report on RubyForge. I'm a bit surprised by the semantics of this class. It doesn't appear possible to use it safely unless there's at least one additional level of locking.

Re: [Ironruby-core] problems with gems

2008-12-31 Thread Curt Hagenlocher
Yes, this is supposed to work – at least when using the MS™ CLR ☺. I used both rake and sinatra as test cases when I was eliminating obstacles to making “igem install” work. I wonder if the problem here might be that the path construction temporarily resulted in something greater than the

Re: [Ironruby-core] Code Review: rakecrossplatform

2008-12-31 Thread Curt Hagenlocher
Looks good! -Original Message- From: Jim Deville Sent: Wednesday, December 31, 2008 12:21 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: rakecrossplatform tfpt review /shelveset:rakecrossplatform;REDMOND\jdeville Comment : Fixes the

Re: [Ironruby-core] Code Review: Thread#raise

2008-12-30 Thread Curt Hagenlocher
Ah, I see; I misunderstood the way that flag was working. -Original Message- From: Shri Borde Sent: Tuesday, December 30, 2008 1:23 PM To: Curt Hagenlocher; IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: RE: Code Review: Thread#raise The terminology I am using

Re: [Ironruby-core] Determining line number of runtime errors

2008-12-16 Thread Curt Hagenlocher
: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Benjamin van der Veen Sent: Tuesday, December 16, 2008 12:42 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Determining line number of runtime errors Curt Hagenlocher wrote: From

Re: [Ironruby-core] Xna+IronRuby+RubyNewb=headache

2008-12-15 Thread Curt Hagenlocher
It would probably be useful if you could describe more specifically what isn't working. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Gabriel Rotar Sent: Sunday, December 14, 2008 6:28 PM To:

Re: [Ironruby-core] Loading Assemblies

2008-12-10 Thread Curt Hagenlocher
CurrentDomain is a static method, not a class -- so you want System::AppDomain.current_domain The AssemblyResolve event comes with its own set of odd side effects that may bite, but it is how IronPython deals with the issue. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Ironruby-core] Loading Assemblies

2008-12-09 Thread Curt Hagenlocher
Few things in CLRland are more frustrating than the Fusion loader. Your simplest short-term fix is probably to set the probe path in ir.exe.config: configuration runtime assemblyBinding xmlns=urn:schemas-microsoft-com:asm.v1 !-- Indicates where the runtime should search for other

Re: [Ironruby-core] Code Review: MoreSites4

2008-12-09 Thread Curt Hagenlocher
Ruby changes look good. -Original Message- From: Tomas Matousek Sent: Tuesday, December 09, 2008 6:16 PM To: IronRuby External Code Reviewers; DLR Code Reviews Cc: ironruby-core@rubyforge.org Subject: Code Review: MoreSites4 tfpt review /shelveset:MoreSites4;REDMOND\tomat DLR change:

Re: [Ironruby-core] Code Review: ScopesAndCrossRuntime

2008-12-06 Thread Curt Hagenlocher
Mmm... I love the smell of dead CodeContext in the morning. It smells like victory! Language changes look good. -Original Message- From: Tomas Matousek Sent: Saturday, December 06, 2008 1:59 PM To: IronRuby External Code Reviewers; DLR Code Reviews Cc: ironruby-core@rubyforge.org

Re: [Ironruby-core] Code Review: NoStaticSites4

2008-11-26 Thread Curt Hagenlocher
Looks good. -Original Message- From: Tomas Matousek Sent: Wednesday, November 26, 2008 9:29 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: NoStaticSites4 tfpt review /shelveset:NoStaticSites4;REDMOND\tomat Adds support for SiteLocalStorage

[Ironruby-core] Code Review: RubyClrInterop06

2008-11-24 Thread Curt Hagenlocher
tfpt review /shelveset:RubyClrInterop06;REDMOND\curth Comment : Create constructors on generated types that match each base class constructor Allocator logic not yet updated to use new constructors -- Curt Hagenlocher [EMAIL PROTECTED] RubyClrInterop06.diff Description: RubyClrInterop06.diff

Re: [Ironruby-core] Code Review: RubyClrInterop06

2008-11-24 Thread Curt Hagenlocher
To: Curt Hagenlocher; IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: RE: Code Review: RubyClrInterop06 In DefineConstructors, newParams seems to be unnecessarily copied. Wouldn't it be better to do: Type[] newParams; Type[] baseParams = baseCtor.GetParameters(); if (has

Re: [Ironruby-core] Code Review: NoComplexCall

2008-11-24 Thread Curt Hagenlocher
Two misspellings should be noted -- the shelveset is actually named NoComplexCalls and RubyMethodInfo.PramsArrayDelegateType needs another a. :) Looks good otherwise. -Original Message- From: Tomas Matousek Sent: Monday, November 24, 2008 6:37 PM To: IronRuby External Code Reviewers;

Re: [Ironruby-core] Xna+IronRuby+RubyNewb=headache

2008-11-20 Thread Curt Hagenlocher
-core] Xna+IronRuby+RubyNewb=headache Curt Hagenlocher wrote: Hi Is this a Ruby class that you've derived from an XNA type or just the XNA type directly? Well making a game using Xna basically meas inheriting the Game class present in Xna and implementing it's methods so yes it's a ruby class

Re: [Ironruby-core] Code Review: RubyInitializers8

2008-11-20 Thread Curt Hagenlocher
The definition of OptionalParamCount in ArgsBuilder.cs looks wrong. A gratuitous tab character snuck into IoOps.cs. Not specific to this set of changes, it would be nice if the generation program for ReflectionCache.Generated were to apply some kind of deterministic sort to the methods being

Re: [Ironruby-core] Xna+IronRuby+RubyNewb=headache

2008-11-19 Thread Curt Hagenlocher
I'm not entirely sure I understand the problem, but Initialize is the one CLR method name that we don't mangle. Is this a Ruby class that you've derived from an XNA type or just the XNA type directly? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [Ironruby-core] Xna+IronRuby+RubyNewb=headache

2008-11-19 Thread Curt Hagenlocher
that one method then. Sorry :-( Curt Hagenlocher wrote: I'm not entirely sure I understand the problem, but Initialize is the one CLR method name that we don't mangle. Is this a Ruby class that you've derived from an XNA type or just the XNA type directly? -Original Message- From

Re: [Ironruby-core] r169 problem

2008-11-18 Thread Curt Hagenlocher
I just committed a fix for interop to our internal repository. It should be merged out shortly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Peters Sent: Monday, November 17, 2008 10:39 PM To: ironruby-core@rubyforge.org Subject: Re:

Re: [Ironruby-core] Code Review: MiscFixesA2

2008-11-18 Thread Curt Hagenlocher
Looks good. -Original Message- From: Tomas Matousek Sent: Tuesday, November 18, 2008 10:38 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: MiscFixesA2 tfpt review /shelveset:MiscFixesA2;REDMOND\tomat Misc small fixes: - Throws an

Re: [Ironruby-core] Code Review: interop1

2008-11-17 Thread Curt Hagenlocher
Looks good. From: Jim Deville Sent: Monday, November 17, 2008 11:43 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: interop1 tfpt review /shelveset:interop1;REDMOND\jdeville Comment : Initial folder structure for IronRuby interop tests. Includes 1

Re: [Ironruby-core] Executables

2008-11-15 Thread Curt Hagenlocher
We don't want our interop tests to be testing irb.rb though. :) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Letterle Sent: Friday, November 14, 2008 6:18 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Executables ? interop works through IRB just as

[Ironruby-core] Code Review: RandomRubyFixes07

2008-11-04 Thread Curt Hagenlocher
tfpt review /shelveset:RandomRubyFixes07;REDMOND\curth Comment : Random fixes which are blocking various scenarios. -- Curt Hagenlocher [EMAIL PROTECTED] RandomRubyFixes07.diff Description: RandomRubyFixes07.diff ___ Ironruby-core mailing list

[Ironruby-core] Code Review: RandomRubyFixes08

2008-11-04 Thread Curt Hagenlocher
on CLS virtual calls -- Curt Hagenlocher [EMAIL PROTECTED] RandomRubyFixes08.diff Description: RandomRubyFixes08.diff ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Code Review: ArrayOfT

2008-11-01 Thread Curt Hagenlocher
Change is good. -Original Message- From: Tomas Matousek Sent: Saturday, November 01, 2008 12:35 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: ArrayOfT tfpt review /shelveset:ArrayOfT;REDMOND\tomat Comment : Enables simple array type

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Curt Hagenlocher
To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] IronRuby for GIMP Hi Curt, Curt Hagenlocher wrote: yield doesn't do in Ruby what it does in C#. Ah, I wasn't aware of that. You'll probably need to define your own enumerator class doing something like this: snip def ListProcedure

Re: [Ironruby-core] Another Interop Question

2008-10-30 Thread Curt Hagenlocher
Cool. Now you can provide an answer when the next person asks. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Peters Sent: Thursday, October 30, 2008 6:40 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Another Interop Question

Re: [Ironruby-core] Unicode Source Files

2008-10-26 Thread Curt Hagenlocher
We do this for compatibility with Ruby 1.8.6, though as you can see, we don't have the error message quite right: PS F:\ C:\ruby\bin\ruby.exe x.rb x.rb:1: Invalid char `\377' in expression x.rb:1: Invalid char `\376' in expression :) I believe you'll need to save as UTF-8 and then manually

Re: [Ironruby-core] Unicode Source Files

2008-10-26 Thread Curt Hagenlocher
AM, Curt Hagenlocher [EMAIL PROTECTED] wrote: We do this for compatibility with Ruby 1.8.6, though as you can see, we don't have the error message quite right: PS F:\ C:\ruby\bin\ruby.exe x.rb x.rb:1: Invalid char `\377' in expression x.rb:1: Invalid char `\376' in expression :) I believe

Re: [Ironruby-core] Overriding CLS Virtuals

2008-10-25 Thread Curt Hagenlocher
Let's say that w is a WPF window. That is, w = System::Windows::Window.new Then you can currently get the actual height of the window by saying either w.ActualHeight -or- w.actual_height. This is something that we don't intend to change. The nature of a dynamic call site is such that the method

  1   2   3   >