Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Query overloadings
[Acceleo] Query overloadings [message #690784] Thu, 30 June 2011 04:16 Go to next message
Eclipse UserFriend
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 #690886 is a reply to message #690784] Thu, 30 June 2011 07:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

Well that's an old debate for us in the Acceleo dev' team and it is far from being 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 to the several other questions on overriding templates with queries or queries with templates and polymorphism between templates and queries, etc. 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: @sbegaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo

[Updated on: Thu, 30 June 2011 07:35] by Moderator

Re: [Acceleo] Query overloadings [message #690975 is a reply to message #690886] Thu, 30 June 2011 09:33 Go to previous message
Eclipse UserFriend
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
Previous Topic:workflow.mwe resource refresh
Next Topic:[EXTEND] and uml metamodel
Goto Forum:
  


Current Time: Fri May 16 18:04:37 EDT 2025

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

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

Back to the top