[QVTOM] Mapping calls in strict mode [message #63697] |
Wed, 10 October 2007 08:22  |
Eclipse User |
|
|
|
Hello everybody,
I am trying to understand the QVT specification and I have troubles with
the xmap keywork. The specs tell me it is a mapping call with strict
semantics/in strict mode. It says the following about mapping modes:
"A mapping operation can be invoked either in strict mode or in standard
mode - depending on the value of the isStrict Boolean property. In
strict mode the when clause is evaluated as a pre-condition. In
contrast, when the mapping is invoked in standard mode, the execution of
the mapping body is skipped and the null value is returned to the caller."
I do not understand what it means. Does it mean the when clause is
evaluated only in strict mode? Can somebody explain?
Regards,
Alfons
|
|
|
Re: [QVTOM] Mapping calls in strict mode [message #63763 is a reply to message #63697] |
Wed, 10 October 2007 11:36  |
Eclipse User |
|
|
|
Hello Alfons,
Spec stays that
a) "when" clause is execute always irrespective of invocation mode
b) in case of strict mode "when" throws an exception if it's not satisfied
c) in case of standard mode "when" is evaluated and if it's not
satisfied the execution of the mapping body is skipped and 'null' is
returned
Regards,
Sergey.
Alfons Laarman wrote:
> Hello everybody,
>
> I am trying to understand the QVT specification and I have troubles with
> the xmap keywork. The specs tell me it is a mapping call with strict
> semantics/in strict mode. It says the following about mapping modes:
> "A mapping operation can be invoked either in strict mode or in standard
> mode - depending on the value of the isStrict Boolean property. In
> strict mode the when clause is evaluated as a pre-condition. In
> contrast, when the mapping is invoked in standard mode, the execution of
> the mapping body is skipped and the null value is returned to the caller."
> I do not understand what it means. Does it mean the when clause is
> evaluated only in strict mode? Can somebody explain?
>
>
> Regards,
>
> Alfons
|
|
|
Powered by
FUDForum. Page generated in 0.06154 seconds