[IronPython] protected set { }

2008-05-14 Thread Matthew Barnard
kName = 'Succeed' >>> obj.WeakName 'Succeed' Is this expected behavior? ___ Matthew Barnard ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] System.Windows.Forms.MethodInvoker

2008-05-14 Thread Matthew Barnard
il.Emit(OpCodes.Ldarg_0); > > il.EmitCall(OpCodes.Call, writeString, null); > > il.Emit(OpCodes.Ret); > > > > MyDelegate dlg = (MyDelegate) > test.CreateDelegate(typeof(MyDelegate), "Hello World!"); > > dlg.BeginInvoke(new

Re: [IronPython] 2 Basic question about IronPython and dyn. langs in general

2008-05-14 Thread Matthew Barnard
ne of the list members - Ben Hall - pointed me at one of his blog posts > > [1]. > > > > > > > > > > > > > http://blog.benhall.me.uk/2008/05/ironpython-classes-within-separate.html > > > > ___ > > Users mailing list > > Users@lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > ___ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- ___ Matthew Barnard ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] System.Windows.Forms.MethodInvoker

2008-05-14 Thread Matthew Barnard
looks up and calls a constructor for whatever it found there. This was the last thing I saw it doing before raising an Access Violation, though I was looking at the TV whilst stepping so I'm sure I missed something critical. And now I can sleep. On Tue, May 13, 2008 at 8:41 PM, Matthew Ba

Re: [IronPython] System.Windows.Forms.MethodInvoker

2008-05-13 Thread Matthew Barnard
ng! Stranger yet > you can call mi() directly showing the delegate is clearly created correctly > and working. Anyway, I'll have to look at it closer – it might require > windbg to figure out what's going wrong here. > > > > *From:* [EMAIL PROTECTED] [mailt

[IronPython] System.Windows.Forms.MethodInvoker

2008-05-13 Thread Matthew Barnard
t 'Finished.' bar = foo() mi = MethodInvoker(bar.start) mi.BeginInvoke(AsyncCallback(bar.finish), None) ___ Matthew Barnard ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Announcing IronPython 2.0 Beta 2

2008-05-03 Thread Matthew Barnard
_ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > -- ___ Matthew Barnard 602 540 0652 ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] List

2008-05-02 Thread Matthew Barnard
or > Python classes because IronPython maintains a cache of generated types and > will reuse a type it has previously generated for any new class you define > that's compatible with a previously-defined class. > > > On Fri, May 2, 2008 at 9:58 PM, Matthew Barnard &l

Re: [IronPython] List

2008-05-02 Thread Matthew Barnard
object: > > class foo(object): > pass > theType = clr.GetClrType(foo) > > What use do you have for creating a generic with the resulting > (dynamically-generated) type? > > On Fri, May 2, 2008 at 6:30 PM, Matthew Barnard < > [EMAIL PROTECTED]> wrote: &

[IronPython] List

2008-05-02 Thread Matthew Barnard
Is the following the only way to create a generic containing a python class? from System.Collections.Generic import List from System import Type class Foo: >>class stuff<< l = List[Type.GetType(Foo())]() I assume this is the nature of dynamic typing, but is there a way to get the type fro

[IronPython] [ironpython] running an ironpython script with .net 3.5

2008-05-02 Thread Matthew Barnard
\Framework\v2.0.50727\System.Xml.dll And both reference Microsoft.Scripting, which references Microsoft.Scripting.Core: C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll etc. ___ Matthew Barnard (pri