Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Annotations in EOL
Annotations in EOL [message #521093] Tue, 16 March 2010 08:10
Eclipse UserFriend
Originally posted by: Juan.deLara.uam.es

Hi,

where are annotations allowed in EOL?
If I type:

@profile
'a'.println();

then nothing happens, but if I type:

'a'.println();
@profile

then the program works. This also happens
with any other annotation. The AST in both
cases seems to be alright, though.
I know that this probably is not the idea
of annotations (i.e., may be they should be attached to
operations), but I'd like to use EOL annotations
in a different way.

thanks,

juan.
Re: Annotations in EOL [message #521094 is a reply to message #521093] Tue, 16 March 2010 08:10 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Juan,

In EOL annotations are indeed only allowed on operation declarations.

Cheers,
Dimitris

Juan de Lara wrote:
>
> Hi,
>
> where are annotations allowed in EOL?
> If I type:
>
> @profile
> 'a'.println();
>
> then nothing happens, but if I type:
>
> 'a'.println();
> @profile
>
> then the program works. This also happens
> with any other annotation. The AST in both
> cases seems to be alright, though.
> I know that this probably is not the idea
> of annotations (i.e., may be they should be attached to
> operations), but I'd like to use EOL annotations
> in a different way.
>
> thanks,
>
> juan.
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Mixing Other Frameworks
Next Topic:Annotations in EOL
Goto Forum:
  


Current Time: Sat Dec 20 00:10:26 GMT 2014

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

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