Open
Description
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.