My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 126: super types not iterated?
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  gameh...@gmail.com
Closed:  Aug 2011


 
Project Member Reported by gameh...@gmail.com, Jul 4, 2011
Hi,
Quickly, this looks like a bug with c++ target and the "super" construct.
Try a temporary variable:
 
var tmp = Assets.rsc.shadow;
super(tmp);
 
Hugh
 
Hi there,
 
I updated from svn and rebuilt for iPhone, but am getting this error
trying to compile my app now:
 
 
Users/milkmangames/dev/svn.googlecode/hxcpp//include/hx/Object.h: In
constructor 'hx::ObjectPtr<O>::ObjectPtr(const
hx::ObjectPtr<SOURCE_>&) [with SOURCE_ = hx::Object, OBJ_ =
nme::display::BitmapData_obj]':
./src/om/view/ShadowView.cpp:40:   instantiated from here
/Users/milkmangames/dev/svn.googlecode/hxcpp//include/hx/Object.h:147:
error: cannot dynamic_cast
'((hx::Object*)inObjectPtr->hx::ObjectPtr<hx::Object>::mPtr)->hx::Object::__GetRealObject()'
(of type 'class hx::Object*') to type 'struct
nme::display::BitmapData_obj*' (target is not pointer or reference to
complete type)
/Users/milkmangames/dev/svn.googlecode/hxcpp//include/hx/Object.h:149:
error: invalid use of incomplete type 'struct
nme::display::BitmapData_obj'
include/nme/display/Bitmap.h:10: error: forward declaration of 'struct
nme::display::BitmapData_obj'
Called from ? line 1
 
Aug 15, 2011
Project Member #1 gameh...@gmail.com
class Unknown
{
   public function new() {}
}

class A
{
   public function new(u:Unknown) {}
}


class Test extends A
{
   public function new()
   {
      var d:Dynamic = null;
      super(d);
   }
   public static function main() { }
}


This should be fixed on haxe SVN.
Status: Fixed

Powered by Google Project Hosting