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
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 #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: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi John,

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

Cheers,
Dimitris
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: 594
Registered: January 2010
Location: Birmingham, UK
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: Sat Apr 27 04:38:07 GMT 2024

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

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

Back to the top