Constructor for new string instances from a scalar character value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in), | optional | :: | string |
elemental module function new_string(string) result(new) character(len=*), intent(in), optional :: string type(string_type) :: new if (present(string)) then new%raw = string end if end function new_string