Type casting in EOL? [message #1749539] |
Wed, 07 December 2016 22:13 |
John Dawes Messages: 19 Registered: November 2016 |
Junior Member |
|
|
Hi,
I am wondering, is it possible to explicitly cast a variable of type X to a variable to type Y, where Y is a subtype of X and it is the actual type of the context variable? I did not see any syntax related to this in the documentation.
Thanks
[Updated on: Wed, 07 December 2016 22:14] Report message to a moderator
|
|
|
|
Re: Type casting in EOL? [message #1749583 is a reply to message #1749542] |
Thu, 08 December 2016 10:42 |
|
There are some limited operations for conversions between collection types (asSequence, asSet...) and to primitives (asInteger, asString...), but EOL is a dynamically typed language, so we don't really have any explicit typecasting syntax.
|
|
|
Powered by
FUDForum. Page generated in 0.03455 seconds