would you mind to file a bug and attach this patch please? Aron
On Sat, Jul 31, 2010 at 11:32 AM, Florentine, Justin F. <[email protected]> wrote: > The code generated for as3 constructors doesn't compile in Flex 3.6. Dunno > much about as3 or if this is intentional or not, but a patch to fix it is > below. > > Index: compiler/cpp/src/generate/t_as3_generator.cc > =================================================================== > --- compiler/cpp/src/generate/t_as3_generator.cc (revision 981076) > +++ compiler/cpp/src/generate/t_as3_generator.cc (working copy) > @@ -696,7 +696,8 @@ > for (m_iter = members.begin(); m_iter != members.end(); ++m_iter) { > t_type* t = get_true_type((*m_iter)->get_type()); > if ((*m_iter)->get_value() != NULL) { > - print_const_value(out, "this." + (*m_iter)->get_name(), t, > (*m_iter)->get_value(), true, true); > + indent(out) << "this._" << (*m_iter)->get_name() << " = " << > (*m_iter)->get_value()->get_integer() << ";" << > + endl; > } > } > indent_down();
