-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Clause 8Standard Clause 8: Attribute declarations and specificationsStandard Clause 8: Attribute declarations and specifications
Description
Allow for the default state of allocatable variables to be allocated with a specified value:
type my_type
integer :: i = 1 ! this has "always" been possible
character(len=:),allocatable :: str = 'default' ! this is not currently possible
end type my_typeI'd also like to be able to define parameters with allocatable components like so:
type(my_type),parameter :: t1 = my_type(1,'option 1')
type(my_type),parameter :: t2 = my_type(2,'option 2')
type(my_type),dimension(2),parameter :: list_of_ts = [t1,t2]aradi, milancurcic, epagone, jacobwilliams and perazz
Metadata
Metadata
Assignees
Labels
Clause 8Standard Clause 8: Attribute declarations and specificationsStandard Clause 8: Attribute declarations and specifications