Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341046

Summary: [Xtend 2] Add support for create extensions
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-03-26 19:36:18 EDT
Create extensions need to be added as a first-class feature, since the semantics cannot be implmented using a library approach.
Comment 1 Sebastian Zarnekow CLA 2011-04-04 05:11:00 EDT
Proposed syntax:

create thing: new Thing() createThing(String a, boolean b, int c, int d) {
	thing.a = a;
	if (b) return;
	thing.c = c + d;
}


The cache lifecycle is bound to the instance of the Xtend-class.
Comment 2 Sven Efftinge CLA 2011-04-04 15:06:37 EDT
pushed to master
Comment 3 Karsten Thoms CLA 2017-09-19 17:43:45 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:54:50 EDT
Closing all bugs that were set to RESOLVED before Neon.0