Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » How to declare type of empty collection in OCL?
How to declare type of empty collection in OCL? [message #595578] Tue, 14 November 2006 10:25
Tord Alenljung is currently offline Tord AlenljungFriend
Messages: 4
Registered: July 2009
Junior Member
How can I declare that for example a Set contains objects of some type
and then initialize it to be empty. Neither I or II below works, but III

(I) Not OK
let a:Set(Integer)=Set{} in a

'Init expression type does not conform to type of variable (a).'

(II) Not OK
let a:Set(Integer)=Set(Integer){} in a

'1:20:1:31 "collectionTypeIdentifierCS" expected instead of "Set(Integer)"'

let a:Set(Integer)=Set{1,3,2} in a


Previous Topic:teneo - cross resource references (only into HbResource)
Next Topic:Client/Server App with EMF and Teneo
Goto Forum:

Current Time: Sun Feb 28 07:36:17 GMT 2021

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

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

Back to the top