Menu

#2 let properties defined on sets

open
nobody
9
2005-02-24
2005-02-24
No

let properties should behave like regular properties.

In the expression below,

allParents is undefined on self.parent, because
self.parent is a set.

def:

let parent : Set(GeneralizableElement) =
self.generalization.parent->asSet()

def:

let allParents: Set(GeneralizableElement) = self.parent-
>union(self.parent.allParents)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB