Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL: Code Refactoring
EVL: Code Refactoring [message #1717127] Thu, 10 December 2015 07:36 Go to next message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Hi,

Is there any statement like macro definition in the general programming languages to refactor a block of statements in the EVL code scripts (I mean in the do part)?
Since usage of the operation/function statement requires a return type.

Kind regards,
Alireza
Re: EVL: Code Refactoring [message #1717146 is a reply to message #1717127] Thu, 10 December 2015 09:29 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 Alireza,

Context and return types are optional for EOL operations i.e. the following is perfectly valid EOL code

foo();

operation foo() {
  "foo".println();
}


Cheers,
Dimitris
Re: EVL: Code Refactoring [message #1717299 is a reply to message #1717146] Fri, 11 December 2015 13:29 Go to previous message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Dear Dimitris,

This is great. Thank you very much.

Kind regards,
Alireza

[Updated on: Fri, 11 December 2015 13:36]

Report message to a moderator

Previous Topic:[EVL] A problem in markerType
Next Topic:EVL: How to create a .evl extension launch file
Goto Forum:
  


Current Time: Sat Apr 27 01:44:56 GMT 2024

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

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

Back to the top