That sounds interesting, can you give me a pointer into the JRuby
sources perhaps?
Niko
On Dec 3, 2007, at 7:23 PM, Charles Oliver Nutter wrote:
Samuele Pedroni wrote:
there's been some discussion on Jython lists and some experimenting
by JRuby
people to use JNA
amit wrote:
Taking example of System.Collection.ArrayList class.
If the class uses the interface IEnumerable that can be checked using
reflection
b_type = System.Type.GetType(fullname)
ifaces = b_type.GetInterfaces()
for interface in ifaces:
if interface
/* C# delegate */
using System;
delegate void Deleg(int x);
class testclass
{
public static void Method1(int i) {
Console.WriteLine(testClass.Method1 : + i);
}
public static void Method2(int i) {
Console.WriteLine(.Method2 : + i*2);
}
}
class Test {
static
Antonio Cuni wrote:
amit wrote:
Problems mapping the two functions
d['__iter__'] = d['GetEnumerator']
d['next'] = d['MoveNext']
to make C# objects iterable in PyPy-Cli module.
a) MoveNext() is not available in both methods and staticmethods
passed to build_wrapper
sure, that's
Hi folks,
FYI we are migrating codespeak.net and pypy.org to
new hardware and also to use new nameservers. Downtime
is expected to stay below 2 hours sometime during tomorrow.
There is a longer announcement on the general
codespeak announcement mailing list
which you may subscribe to at
I think the best way to solve this is to call .GetEnumerator explicitly and
use the resulting enumerator and access values using the enumerators
MoveNext() , Reset() and Current()
something like.
enmtor = self.GetEnumerator()
and use enmtor in the next() as I mentioned below.
but is this likely
Niko Matsakis wrote:
That sounds interesting, can you give me a pointer into the JRuby
sources perhaps?
Ask me again in 24 hours :) Tom says he'll have a bunch of work
committed on the POSIX stuff by then. He's currently mapping stat
structures across platforms to provide full file stat