Re: casting to a short

"Curt Arnold" <[email protected]>
Newsgroups gmane.comp.web.dom.test-suites.general
Message-ID <006101c2bad5$46369da0$a800a8c0@CurtMicron>
All casting is implicit, the transform is responsible for doing any
appropriate casting.   I assume this scenerio (required casting between data
types) had not previously appeared in the tests.  As a workaround, you may
try assigning the value to a short variable and then using the short
variable as the parameter.

<var name="mode" value="1" type="short"/>
<createDOMBuilder var="builder" obj="lsImplementation" mode="mode"
schemaType="schemaType"/>

----- Original Message -----
From: "Jeroen van Rotterdam" <[email protected]>
To: <[email protected]>
Sent: Sunday, January 12, 2003 4:09 PM
Subject: casting to a short


> Attached a really simple test which creates a DOMBuilder.
>
> Compiling fails since it should be:
>
>   builder = lsImplementation.createDOMBuilder((short)1,schemaType);
>
> instead of:
>
>   builder = lsImplementation.createDOMBuilder(1,schemaType);
>
> How do you cast the constant to a short within the test ?
>
> Thanks in advance,
>
> jeroen
>
>
> =====
> X-Hive Corporation
> Jeroen van Rotterdam, CEO
> e-mail: [email protected]
> phone: +31 10 7108600
> http://www.x-hive.com
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.