Home Help Center

C# compile error!!

i wite ice file as
module M
{
struct A
{
string name;
};
["cs:collection"]sequence<A> AAA;

class B
{
AAA getA();
};
};
when i use slice2cs gernerate .cs file and want to compile.
the error occur

in
public sealed class AAAHelper
{
....
public static M.AAA read(IceInternal.BasicStream __is)
{
M.AAA __v;
{
int sz = __is.readSize();
__is.startSeq(sz, 1);
__v = new M.A(sz);
for(int __i = 0; __i < __v.Count; ++__i)
{
__v[__i].__read(__is);
__is.checkSeq();
__is.endElement();
}
}
return __v; }
}
....
}
"type M.A not define construcotr"
why?
i think that's bug.
M.AAA __v=new M.A(sz)???

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Yes, this is a bug in the slice2cs code generator that shipped with 1.5.1. We are about to release Ice 2.0.0, for which this problem is fixed.
    My apologies for the trouble this has caused you.

    Cheers,

    Michi.
Sign In or Register to comment.