Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Downcasting issue again
[Acceleo] Downcasting issue again [message #485021] Thu, 10 September 2009 05:28 Go to next message
Eclipse UserFriend
Hi,

i've again problems with the correct usage of downcasts. Primarily, i
tried to invoke a template with an inline downcast like this:

[mapTTCN3Type(p.type.oclAsType(PrimitiveType))/]

The parser says, that i try to invoke an illegal signature. However, by
surrounding the construct with a [let] block, it works as exepected.

[let pt:PrimitiveType =
p.type.oclAsType(PrimitiveType)][mapTTCN3Type(pt)/][/let] [p.name/] [if
p.isOptional()] optional[/if]

I'm using Acceleo 0.8 in Ganymede!

Thanks
Timothy
Re: [Acceleo] Downcasting issue again [message #486117 is a reply to message #485021] Wed, 16 September 2009 07:59 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------020505000508090101050104
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Timothy,

Seems like a parser issue to me ... but we've resolved a great deal of
parsing problems since the 0.8 release. You should update to the latest
0.9 release. It's still an integration build, yet the 0.9 branch is way
more stable than the 0.8.

Laurent Goubet
Obeo

Timothy Marc a
Previous Topic:Invoking Expand generator from Java
Next Topic:How to exit the FOR LOOP
Goto Forum:
  


Current Time: Mon Jul 07 05:49:37 EDT 2025

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

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

Back to the top