aK
Size: a a a
aK
МР
FO
МР
AV
IS
package limited_with_1_h isВторой файл файл limited_with_2_h.ads
type foo is record
null;
end record
subtype foo_t is foo;
end limited_with_1_h;
limited with limited_with_1_h;Так вот такая конструкция не компилируется с ошибкой:
package limited_with_2_h is
type bar is record
foo : access limited_with_1_h.foo_t;
end record
end limited_with_2_h;
limited_with_2_h.ads: "foo_t" not declared in "limited_with_1_h"Решения вижу два.
subtype foo_t is foo;на
type foo_t is new foo;это выглядит более безобидно, но тогда должно быть какое-то объяснение почему gcc генерирует subtype
aK
aK
IS
МР
with B; package A is end;
with A; package B is end;
IS
with B; package A is end;
with A; package B is end;
МР
type T;
т.е. без всех свойствМР