Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaced fields with "me" prefixed #265

Closed
larshp opened this issue Jan 3, 2021 · 1 comment · Fixed by #266
Closed

interfaced fields with "me" prefixed #265

larshp opened this issue Jan 3, 2021 · 1 comment · Fixed by #266
Assignees
Labels
bug Something isn't working

Comments

@larshp
Copy link
Member

larshp commented Jan 3, 2021

INTERFACE lintf.
  DATA bar TYPE i.
ENDINTERFACE.

CLASS lclas DEFINITION.
  PUBLIC SECTION.
    INTERFACES lintf.
    METHODS bar.
ENDCLASS.

CLASS lclas IMPLEMENTATION.
  METHOD bar.
    me->lintf~bar = 2.
  ENDMETHOD.
ENDCLASS.
@larshp larshp added the bug Something isn't working label Jan 3, 2021
@larshp
Copy link
Member Author

larshp commented Jan 3, 2021

maybe similar to

INTERFACE lintf.
  DATA bar TYPE i.
  METHODS barm.
ENDINTERFACE.

CLASS lclas DEFINITION.
  PUBLIC SECTION.
    INTERFACES lintf.
ENDCLASS.

CLASS lclas IMPLEMENTATION.
  METHOD lintf~barm.
    me->lintf~bar = 2.
  ENDMETHOD.
ENDCLASS.

FORM bar.
  DATA li TYPE REF TO lintf.
  CREATE OBJECT li TYPE lclas.
  li->barm( ).
  WRITE li->bar.
ENDFORM.

START-OF-SELECTION.
  PERFORM bar.

@larshp larshp self-assigned this Jan 3, 2021
larshp added a commit that referenced this issue Jan 3, 2021
larshp added a commit that referenced this issue Jan 4, 2021
* interfaces, #265

* wip

* update example

* fix interface attributes

* 1.1.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant