[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

About casting

Subject: About casting
From: "Leo Studer leo.studer@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Oct 2018 05:32:49 -0000
 About casting
Good morning - at least in Europe ;-)

Thank you Kay for bringing this up. For me it is not alway clear when I have
to cast explicitly and when it is happening implicitly. I for my code cast
explicitly even when it is not required. In this way I better understand what
is happening.

What you call strong casting is in my terminology explicit casting and your
week casting is implicit casting for me.

Have a wonderful week
Always
Leo

> Just to clarify this, we could perhaps use the terms
>
> * strong casting - as performed using the "cast as" expression or a
constructor function like xs:integer()
>
> * weak casting - as performed by the (badly-named) function conversion
rules. Includes atomization, numeric promotion, and conversion of
xs:untypedAtomic to the required type
>
> * exact match - the supplied value must match the required type exactly.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.