Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EPL] Strange onmatch/nomatch behavior
[EPL] Strange onmatch/nomatch behavior [message #1075295] Mon, 29 July 2013 07:39 Go to next message
Alex G is currently offline Alex GFriend
Messages: 96
Registered: January 2012
Member
Hi!

I'm facing a strange behavior regarding the RepeatWhileMatches==true option with a infinite (or large) amount of loops.

pattern MyPattern
   some roles here ...
   
   match {
      if(something) return true;
      return false;
   }
   
   onmatch { ... }
   nomatch { ... }


Now If "something" is not fulfilled I'm going to the nomatch part directly and create there some other object "O". Then another pattern which is precedent to "MyPattern" and shall handle the newly create object "O" is not analyzed any more!
However if I interchange onmatch and nomatch, it works as expected: the precedent pattern to MyPattern is called once more on "O". Semantically I see no difference in interchanging onmatch and nomatch regarding the RepeatWhileMatches option.
   match {
      if(not something) return false;
      return true;
   }
   
   onmatch { ... }
   nomatch { ... }


Best regards,
Alex.
Re: [EPL] Strange onmatch/nomatch behavior [message #1075300 is a reply to message #1075295] Mon, 29 July 2013 07:47 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2182
Registered: July 2009
Location: York, UK
Senior Member

Hi Alex,

I'm not sure I fully understand the nature of the issue you're describing. Could you please put together a minimal example I can use to reproduce this?

Cheers,
Dimitris
Previous Topic:[EWL] In-Place transformation programmatically
Next Topic:[EPL] Cannot find meta-class
Goto Forum:
  


Current Time: Thu Sep 26 06:00:01 GMT 2024

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

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

Back to the top