Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Type casting in EOL?
Type casting in EOL? [message #1749539] Wed, 07 December 2016 22:13 Go to next message
John Dawes is currently offline John DawesFriend
Messages: 19
Registered: November 2016
Junior Member

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.


[Updated on: Wed, 07 December 2016 22:14]

Report message to a moderator

Re: Type casting in EOL? [message #1749542 is a reply to message #1749539] Wed, 07 December 2016 22:52 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1609
Registered: July 2009
Location: York, UK
Senior Member

Hi John,

No, that's not possible in EOL I'm afraid.

Re: Type casting in EOL? [message #1749583 is a reply to message #1749542] Thu, 08 December 2016 10:42 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 476
Registered: January 2010
Senior Member
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.
Previous Topic:How Can I draw just one of two opposite reference?
Next Topic:Call EGL file from Java application
Goto Forum:

Current Time: Wed Nov 14 03:33:09 GMT 2018

Powered by FUDForum. Page generated in 0.01904 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top