Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Query overloadings
[Acceleo] Query overloadings [message #690784] Thu, 30 June 2011 08:16 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 11:34 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

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 11:35]

Report message to a moderator

Re: [Acceleo] Query overloadings [message #690975 is a reply to message #690886] Thu, 30 June 2011 13:33 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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: Tue Apr 16 19:10:05 GMT 2024

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

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

Back to the top