[Mono-dev] ref and out for param in override methode

Miguel de Icaza miguel at novell.com
Sun Jul 1 23:13:33 EDT 2007


Hello Olivier,

> 1) I have a strange bug in my javascript compiler. When I run unit
> test on Optionsparser of javascript compiler of moonlight, I see a
> strange behaviour:
> The base methode is GetHelp (out usage, out optionsParsertext, out
> environlentVariables, out comments). But in the derived class of MS
> JavaScript compiler I have options.GetHelp (ref usage, ref
> optionsParsertext, ref environlentVariables, ref comments);
> But if I override it in my code compiler only want ref to overide "ref
> param" and not "out param" whereas MS dll done it. How it can be
> possible and how do it? 

This could be a bug in our compiler.   If you have a small test case,
please file a bug report with the test case.

In the meantime, is it possible to avoid this construct?

> 2) Miguel talked about regular unit test for javascript compiler. Is
> it Mozilla javascript test? For moment I have only my own test to test
> all statement and some basic expression.

Yes, that test suite.   I think we adapted it in the past for jsc (we
talked online about that one).

There might be a newer version of the test suite, and ideally we could
use that.

Miguel.



More information about the Mono-devel-list mailing list