[Acceleo] Query overloadings [message #690784] |
Thu, 30 June 2011 04:16  |
Eclipse User |
|
|
|
Hi
templates support polymorphic dispatch to produce text
queries support ..... dispatch to produce intermediate values
I know it's not in the specification, but equally it's not not in the
specification, so why don't queries dispatch polymorphically?
It's a pain having to do if oclIsKindOf trees in a massive query.
Regards
Ed Willink
|
|
|
|
Re: [Acceleo] Query overloadings [message #690975 is a reply to message #690886] |
Thu, 30 June 2011 09:33  |
Eclipse User |
|
|
|
Hi Stephane
Good. Perhaps a good time to get you all talking again.
I can't see the query/template problem; a conflict is an error; cf a
Java static and non-static operation conflict.
After a skim-read of the specification, it looks as if you can just copy
the template overloading rules across to query.
Regards
Ed Willink
On 30/06/2011 13:34, Stephane Begaudeau wrote:
> Hi Ed,
>
> Well that an old debate for us in the Acceleo dev' team and it is not
> closed. Some people think that query overloading and polymorphism with
> query could be a nice addition. It may not be that simple because it
> opens the door the several other questions on overriding templates
> with queries or queries with templates and what about polymorphism
> between templates and queries. I think that's an interesting question,
> and I think that at least polymorphism should be taken into account
> for queries but Acceleo 3.1 was not about the introduction of new
> behavioral feature in the Acceleo language so maybe later.
>
> Regards,
>
> Stephane Begaudeau, Obeo
>
> --
> Twitter: http://twitter.com/#!/sbegaudeau
> Blog: http://stephanebegaudeau.tumblr.com
> Acceleo Documentation: http://docs.obeonetwork.com/acceleo
|
|
|
Powered by
FUDForum. Page generated in 0.05651 seconds