From: "Ralf Tita" <natsulu@cs.tu-berlin.de>
Subject: help: type and packages
Date: 1999/02/06
Date: 1999-02-05T23:57:04+00:00 [thread overview]
Message-ID: <79g0gg$ppm$1@news.cs.tu-berlin.de> (raw)
Hi there,
I'm using ADA83 and have a problem with types in differnt packeges.
My first package looks like this:
package first is
...
type HAND_T is (open,close);
...
end first;
the second package wich imports the first includes this type in a record:
with first;
use first;
package second is
...
type TODO_T is record
Hand : HAND_T;
movement: : MOVE_T;
end record;
...
end second;
-- no problem.
But when I want to use this record in a third packege wich only imports
the second package the compiler don't knows the component HAND_T
of the record.
with second;
use second;
package third is
WhatToDo: TODO_T;
...
WhatToDo.Hand:=open; -- here comes the compiler error
....
end third;
so does anybody knows where the mistake is ?
When you got an solution please send me a mail.
thanks a lot
Ralf Tita
natsulu@cs.tu-berlin.de
next reply other threads:[~1999-02-06 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-06 0:00 Ralf Tita [this message]
1999-02-05 0:00 ` help: type and packages David C. Hoos, Sr.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox