[pypy-svn] r34162 - in pypy/dist/pypy/translator/cli: . src
antocuni at codespeak.net
antocuni at codespeak.net
Sat Nov 4 12:57:30 CET 2006
Author: antocuni
Date: Sat Nov 4 12:57:29 2006
New Revision: 34162
Modified:
pypy/dist/pypy/translator/cli/query.py
pypy/dist/pypy/translator/cli/src/query.cs
Log:
It seems that mono on snake uses a slighly different string
representation for array types than the one on my box (notice that the
two version are exactly the same!!).
Modified: pypy/dist/pypy/translator/cli/query.py
==============================================================================
--- pypy/dist/pypy/translator/cli/query.py (original)
+++ pypy/dist/pypy/translator/cli/query.py Sat Nov 4 12:57:29 2006
@@ -83,7 +83,9 @@
return NamespaceDesc(name)
def load_class_maybe(name):
- if name not in ClassCache:
+ if name.startswith('System.Array+InternalArray'):
+ ClassCache[name] = ClassCache['System.Array']
+ elif name not in ClassCache:
load_class_or_namespace(name)
Modified: pypy/dist/pypy/translator/cli/src/query.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/query.cs (original)
+++ pypy/dist/pypy/translator/cli/src/query.cs Sat Nov 4 12:57:29 2006
@@ -126,6 +126,7 @@
&& t != typeof(void)
&&(t == typeof(System.ValueType) ||
t == typeof(System.Array) ||
+ t.FullName.StartsWith("System.Array+InternalArray") ||
t.IsValueType ||
t.IsByRef ||
t.IsPointer ||
More information about the pypy-svn
mailing list