Annotations in EOL [message #521093] |
Tue, 16 March 2010 04:10 |
Eclipse User |
|
|
|
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 04:10  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.41563 seconds