What does the output of compiling with warnWithThis say? On Mar 9, 2011, at 2:12 PM, P T Withington wrote:
> The incomplete classes are listed as LzDataset, LzAnimatorGroup, and > LzAnimator. These are are real classes, so I think there's a bug here. > > On 2011-03-09, at 13:54, Donald Anderson wrote: > >> If you compile warnWithThis, we'll see why. Here's a guess, that the mixins >> are not really handled: >> >> public dynamic class LzDataset extends LzNode with LzDataElementMixin, >> LzDataNodeMixin >> >> I think the straight inheritance chain may be generated as reference class, >> but not the mixins. Currently, the schema does not know about mixin >> inheritance. Solutions: >> - Add mixins to the schema, and generate reference classes for any needed >> mixins. >> - Generate reference classes for everything (but I know this had some issues >> when I tried it). >> >> But failures like that are detected, and the fallback of generating with >> (this) should work. 99% coverage is not bad! Like to hear what performance >> diff there would be. >> >> - Don >> >> On Mar 9, 2011, at 1:29 PM, P T Withington wrote: >> >>> I verified that I can compile webtop with your change and eliminate nearly >>> all uses of 'with (this)': >>> >>> main.lzx.don:66 >>> main.lzx.js:6569 >>> >>> A spot-check reveals most of the remaining uses of 'with (this)' are >>> apparently due to the compiler having incomplete information for >>> lz.dataset? Could that be? > -- Don Anderson Java/C/C++, Berkeley DB, systems consultant voice: 617-306-2057 email: [email protected] www: http://www.ddanderson.com blog: http://libdb.wordpress.com
