codyze icon indicating copy to clipboard operation
codyze copied to clipboard

Model the caller of a function

Open oxisto opened this issue 3 years ago • 1 comments

Is it possible to model in MARK the caller of a function/operation, i.e. to restrict that a certain function should only be called by a specific other function or better just with a certain class?

oxisto avatar Apr 21 '21 18:04 oxisto

An example:

class B {
  fun myFunc() {
    obj.call()
  }
}

Is it possible to restrict calling obj.call() only from within B.myFunc()?

fwendland avatar Apr 23 '21 09:04 fwendland