Issue 19725: Allow QVTc to use initialized variables (qvt-rtf) Source: Model Driven Solutions (Dr. Edward Willink, ed(at)willink.me.uk) Nature: Clarification Severity: Minor Summary: Initializing variables at the point of declaration is generally recognized as good practice. QVTc does not support it. Suggest extend the (Realized) Variable syntax to support an initializer. Resolution: Allow QVTc to use initialized variables Initializing variables at the point of declaration is generally recognized as good practice. QVTc does not support it. Suggest extend the (Realized) Variable syntax to support an initializer. Discussion Initializing RealizedVariables makes no sense, since a RealizedVariable is initialized by the new Type(). Initializing (Unrealized)Variables is however useful and supported by the Abstract Syntax already; just need some Concrete Syntax re-using the := of an Assignment. Revised Text: In 9.18 Concrete Syntax replace Variable := VariableName ':' TypeDeclaration by Variable := VariableName ':' TypeDeclaration [':=' ValueOCLExpr] Actions taken: February 19, 2015: received issue December 22, 2015: Resolved March 29, 2016: closed issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 19 Feb 2015 08:14:18 -0500 To: Subject: Issue/Bug Report ******************************************************************************* Name: Ed Willink Employer: mailFrom: ed@willink.me.uk Terms_Agreement: I agree Specification: QVT 1.2 Section: 9 FormalNumber: - Version: 1.2 Beta Doc_Year: Year Doc_Month: Month Doc_Day: Day Page: 174 Title: Allow QVTc to use initialized variables Nature: Clarification Severity: Minor CODE: 3TMw8 B1: Report Issue Remote Name: edwillink.plus.com Remote User: HTTP User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 Time: 08:14 AM Description: Initializing variables at the point of declaration is generally recognized as good practice. QVTc does not support it. Suggest extend the (Realized) Variable syntax to support an initializer.