[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2t] Re: [Acceleo] Downcasting issue again

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 écrit :
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

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/";>Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard