Skip to content

Protected attribute for variables in derived types #16

Open
@aradi

Description

@aradi

It would be awesome, if the protected attribute could also be used in derived types:

  type :: some_big_data_t
    real, allocatable, protected :: data(:,:)
  contains
    procedure :: set_data
    !procedure :: get_data
  end type some_big_data_t

It would help to avoid unnecessary copies when retrieving data from a derived type instance and enable protection against unnoticed manipulation of that data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Clause 8Standard Clause 8: Attribute declarations and specificationsFortran 202yProposals targeting the standard after F2023under considerationHas been submitted to the committee

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions