Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Difference between arrow(->) and dot(.) in qvto  () 1 Vote
icon5.gif  Difference between arrow(->) and dot(.) in qvto [message #1732206] Fri, 13 May 2016 12:44 Go to next message
Umesh Thakare is currently offline Umesh ThakareFriend
Messages: 12
Registered: February 2016
Junior Member
Hello
I have the following problem while writing qvto.
i have written below piece of code which is working in eclipse 3.8
But below code not working in eclipse 4.5 why?

file += innerDir->children.oclAsType(Directory);

And when we change the above snipped of code from arrow(->) to dot(.) its working on eclipse 4.5
Please find amendment of code below

file += innerDir.children.oclAsType(Directory);

So my question is why arrow(->) is not working in eclipse 4.5 on the same place in which dot(.) is working?
And what is difference between arrow(->) and dot(.) ?

[Updated on: Fri, 13 May 2016 12:46]

Report message to a moderator

Re: Difference between arrow(->) and dot(.) in qvto [message #1732213 is a reply to message #1732206] Fri, 13 May 2016 13:24 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5883
Registered: July 2009
Senior Member
Hi

OCL 2.4 clarified this. See Section 7.4.10 of
http://www.omg.org/spec/OCL/2.4/PDF/

Implicit-collect can be very helpful but also very confusing. This is
what you are seeing.

In one case you cast the collection to a Directory. In the other you
collect the elemental casts.

Regards

Ed Willink

On 13/05/2016 13:44, Umesh Thakare wrote:
> Hello
> I have the following problem while writing qvto.
> i have written below piece of code which is working in eclipse 3.8
> But below code not working in eclipse 4.5 why?
>
> file += innerDir->children.oclAsType(Directory);
>
> And when we change the above snipped of code from arrow(->) to dot(.)
> its working on eclipse 4.5 Please find amendment of code below
>
> file += innerDir.children.oclAsType(Directory);
>
> So my question is why arrow(->) is not working on eclipse 4.5 on the
> same place in which dot(.) is working?
> And what is difference between arrow(->) and dot(.) ?
Previous Topic:Qvt Simple Question
Next Topic:QVTO - Import Works in 3.4 but not in 3.6
Goto Forum:
  


Current Time: Sun May 20 18:06:22 GMT 2018

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

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

Back to the top