Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Define variable in a template
Define variable in a template [message #1735212] Thu, 16 June 2016 11:04 Go to next message
Habtamu Tolera is currently offline Habtamu ToleraFriend
Messages: 20
Registered: June 2016
Junior Member
Hi,

I started using Acceleo recently, so I am new. I want to define variable in a template to use it in the same template. I want to read and write to this variable many times in the template. How to define a variable other than using 'let'?

Best regards,
Habtamu
Re: Define variable in a template [message #1735568 is a reply to message #1735212] Tue, 21 June 2016 09:10 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1858
Registered: July 2009
Senior Member
Hi,

There is no way to write into a variable other than its initialization expression, even with a "let". Acceleo expects users to think their generation templates without using such variables. Could you tell us what you are trying to accomplish? we might be able to help on how to do things differently.

Laurent Goubet
Obeo
Previous Topic:Re: Acceleo loop problem
Next Topic:Using multiple input files (though one model) to generate
Goto Forum:
  


Current Time: Tue Sep 25 18:59:45 GMT 2018

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

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

Back to the top