Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341046 - [Xtend 2] Add support for create extensions
Summary: [Xtend 2] Add support for create extensions
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-26 19:36 EDT by Sven Efftinge CLA
Modified: 2017-09-19 17:54 EDT (History)
1 user (show)

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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