Ticket #287 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

result mappings in before/after bindings should be illegal

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.3.1
Component: language Version: 1.3.0
Keywords: Cc:

Description

The original example in #286 contains non-sensical code: an after callin binding defines a parameter mapping including a mapping for result.

However, before/after callin bindings do not pass any value to the base side.

In the current implementation such useless result mappings are simply ignored, but the language definition should preferable prohibit this situation. This is especially relevant for after bindings, since they can indeed expose the base result to the role method. Programmers should be alerted that the opposite direction is not possible.

Change History

follow-up: ↓ 2   Changed 4 years ago by stephan

Paragraph 4.4(c) has been updated accordingly in r21944.

in reply to: ↑ 1   Changed 4 years ago by stephan

Replying to stephan:

Paragraph 4.4(c) has been updated accordingly in r21944.

OTJLD link should have been OTJLD §4.4(c).

  Changed 4 years ago by stephan

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to OTDT_1.3.1

Test for new compiler message is 4.3.1-otjld-parameter-mapping-16.

Implemented in r21949.

Note: See TracTickets for help on using tickets.