The Reference object is just a holder so that you can pass it
in, and then use it after the call. It has a .Value property that will return
you the updated value (or the original if the value hasn’t changed). So
x.Value should get you the new value.
From:
[EMAIL PROTECTED] [mailto
Ok, that worked but what I got back is not very useful
>>> lpstat = clr.Reference[int](0)>>> objval =
clr.Reference[float](0)>>> x =
clr.Reference[System.Array[float]](System.Array[float]((0,0,0)))>>>
pi =
clr.Reference[System.Array[float]](System.Array[float]((0,0,0)))>>>
sl =
clr.Refe
You can do:
import System
import clr
clr.Reference[System.Array[int]]( System.Array[int]( (1,2,3) ) )
This breaks down into the array creation:
System.Array[int]( (1,2,3) )
And then passing that to the new instance of clr.Reference.
From:
[EMAIL PROTECTED] [mailt
how to I create an array to pass by reference? I assume that your
example is creating an integer with a value of 3 to pass by reference.
- Original Message -
From: Dino Viehland
To: Discussion of IronPython
Sent: Friday, August 25, 2006 4:06
PM
Subject: Re: [IronPytho
Thanks for the quick answer! I basically want .NET objects to be supported in
our product as plug-ins. We currently support C++ plug-ins (with
LoadLibray/GetProcAddress) and scripting plugins (which includes jscript,
vbscript and python scripting). Plug-ins basically get hooked up through
funct
This is the “easy” way to call functions that are passing values
by reference. You should be able to pass non-zero values as well as non-empty
arrays. The only thing that should disallow this is if there were multiple
overloads that resulted in an ambiguous method resolution.
For th
If I import a c# function that passes its arguments (integers and
arrays)
by reference, the only way I can get it to work is pass zeroes for the
integers and
arrays of zero for the arrays. The results for the variables
passed by reference return with the function
return. Is that what is sup
The problem you're running into is that we won't expose the Python type by the
names you compile it as - this is the weirdness you're seeing versus a C#
compiled assembly.
There's a couple of ways to deal with this. One is to host IronPython and use
the PythonEngine interfaces to expose object
Thanks for the bug report Kurt. I've opened CodePlex bug #2599 to track the
issue
(http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=2599
)
We currently don't allow assignment to __builtins__ - this is a known
incompatibility that we'll document for the time being a
Hi:I tried to build August release of SDK language service for MVStudio 5 std version. I managed to compile fine on one machine, but on this machine I get: CTC : fatal error CTC2013: Can't start preprocessor (2)4 times. I believe it's due to MSVStudio 2003 being around. I had some issues with LI
Hello,
I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app in order to access
objects from .NET assemblies with IDispatch. This is working fine for C#
assemblies but failed for IP assemblies.
The call to _AppDomain.CreateInstance below returns this error: 80131522, which
I couldn't find in
On 8/25/06, Dino Viehland <[EMAIL PROTECTED]> wrote:
> Thanks for the crash dump - I've forwarded this to the VS SDK team... I was
> able to get a stack trace (you should have been able to do this in VS from
> Debug->Windows from the VS session that's debugging the VS SDK version of VS)
> but I
Does it repro even on a warn startup or only the 1st time? Also, is this on
Windows or on Mono?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of psi
Sent: Saturday, August 19, 2006 11:39 AM
To: users@lists.ironpython.com
Subject: Re: [IronPython] console
Thanks for the crash dump - I've forwarded this to the VS SDK team... I was
able to get a stack trace (you should have been able to do this in VS from
Debug->Windows from the VS session that's debugging the VS SDK version of VS)
but I pulled it using windbg. I'm actually not too familiar with
this seems to have happened to me when i upgraded from rc1 ti rc2.
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Stan,
I am convinced of that! The overall speed difference between SimPy in IP and
SimPy in CPython is much larger than the published IP-vs-CPython benchmarks
suggest. I sincerely hope that in a next round of IP tuning, the
implementation of "yield" is reviewed and optimized for speed. It is an
imp
I'm quite new to Python in general, but one of the first things I wanted
to try was to get IronPython to load scripts out of my own virtual
directory system. __import__ seemed like a good place to start, but
IronPython seems to be doing things differently from CPython.
CPython expects you to o
You can always add comments to the bugs on CodePlex and of
course feedback like this on the mailing list is good too. But I think the
size and difficulty on this one also helps make it self-prioritizing J.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Curt Hagenloche
I’d say this would depend on what you were doing w/ the values.
If you were writing some code that was heavy on .NET interop passing decimal’s
back and forth the .NET struct (System.Decimal) will probably be better. If
you were staying entirely within Python then I’d suggest using the one
On 8/25/06, Dino Viehland <[EMAIL PROTECTED]> wrote:
I've opened bug #2590 (
http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=2590) to track this. We have another compression request bug already (PEP 273 zip archive module support) and these two would go hand-in-hand.
Anyone know of any backend bindings for IP in SharpDevelop? All I've been able
to find is documented in Chinese.
Jon Cosby
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Hi Charlie,
I wound up not using it that much. I followed Tutorial 7 in Tutorial that
cam with RC_2 and set up a project in VS2005
for IronPython and that worked rather well.
Jeff
"Charlie Moad"
This got bounced for the attachment, so here is the text.
-- Forwarded message --
From: Charlie Moad <[EMAIL PROTECTED]>
Date: Aug 25, 2006 12:35 PM
Subject: Re: [IronPython] VS2005 Iron Python
To: Discussion of IronPython
On 8/25/06, Dino Viehland <[EMAIL PROTECTED]> wrote:
> A
What's the favored way of handling fixed-point datatypes? Should I be using decimal from the standard library, or a .net datatype of some sort?
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
I've opened bug #2590
(http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=2590)
to track this. We have another compression request bug already (PEP 273 zip
archive module support) and these two would go hand-in-hand. No ETA on when
we'd get to this though, but most l
Are you running w/ all the bits that came w/ the VS SDK, or are you mixing &
matching w/ the latest IronPython? There may be some issues w/ the latter case
but once you get it compiling it usually works.
0xc005 is the status code for an access violation so it would look like
there's a cras
On 8/16/06, Jeff Collett <[EMAIL PROTECTED]> wrote:
>
> Hi,
> A question for anyone using the VS2005 IronPython IDE.
> I start a python console app, but when I attempt to run it within VS2005 it
> just shows an empty console window.
> I can run the py program fine if I use the command line IronPyth
27 matches
Mail list logo