"Lack of a full declaration for a private type .." in Ada

I am having a problem using the ADS file package in Ada. I get the error "Missing full declaration for private type LETTER". How can I handle this?

this is the code i wrote:

package LETTER_SPEC

type LETTER is private;

procedure DATE_OF_LETTER (THE_LETTER: out of LETTER, DATE: STRING);

procedure RECIPIENT_NAME (THE_LETTER: outside LETTER, NAME: STRING);

SUBJECT_LINE procedure (THE_LETTER: outside LETTER, SUBJECT: STRING);

procedure TEXT_OF_LETTER (THE_LETTER: outside LETTER, TEXT: STRING);

SENDER_NAME procedure (THE_LETTER: outside LETTER, NAME: STRING);

PUT_LETTER procedure (THE_LETTER: in LETTER);

private

type PTR_LETTER is access to STRING;

type LETTER_DATA

   record

      DATE_OF_LETTER: PTR_LETTER;

       RECIPIENT_NAME: PTR_LETTER;

      SUBJECT_LINE: PTR_LETTER;

       TEXT_OF_LETTER: PTR_LETTER;

       SENDER_NAME: PTR_LETTER;

   end record;

end LETTER_SPEC; ''

Thanks in advance.

+3
1

, LETTER_DATA, LETTER.

+5

Source: https://habr.com/ru/post/1724290/


All Articles