Re: Optional method arguments in the DOM

This would be nice:

document.evaluate( expression, contextNode );


On 6/29/06, Anne van Kesteren <annevk@opera.com> wrote:
>
> On Fri, 23 Jun 2006 16:50:52 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> > Now there are several obvious modifications to this system that could be
> > made:
> >
> > [...]
>
> How about having specified in the IDL which parameters default to certain
> value when omitted? So both the parameter being omitted is specified and
> it's value to be assumed by the UA is.
>
>    void() test(foo, [bar] null)
>
> Would be a way to do it I guess. (I don't really like the syntax though...)
>
>
> --
> Anne van Kesteren
> <http://annevankesteren.nl/>
> <http://www.opera.com/>
>
>
>


-- 
http://dhtmlkitchen.com/

Received on Thursday, 29 June 2006 20:17:44 UTC