> I was wondering the point of this line when inheriting objects:
> 
> MyObject.prototype = new DynObject();

It's so that any changes to DynObject.prototype at runtime will
be reflected in MyObject.prototype

> Wouldn't it be better to say:
> MyObject.prototype = DynObject.prototype

I guess this would only create a pointer, so that changes to
MyObject.prototype would affect DynObject.prototype

SD
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev

Reply via email to