* test with task
@ 2004-11-23 11:12 Maurizio
2004-11-23 16:36 ` mferracini
2004-11-23 16:37 ` mferracini
0 siblings, 2 replies; 8+ messages in thread
From: Maurizio @ 2004-11-23 11:12 UTC (permalink / raw)
i'm a ada newbie
ad image is better than 1000 words
http://img112.exs.cx/img112/3417/DSC08831.jpg
is possible do this?
package A is generic and the task use his procedure.
in package B there is array of task.
package A create a new task and add it on the array of package B.
ps
this is not home work, only i try to learn ada :)
best regards from italy
Maurizio
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: test with task
2004-11-23 11:12 Maurizio
@ 2004-11-23 16:36 ` mferracini
2004-11-23 18:42 ` Jeffrey Carter
2004-11-23 16:37 ` mferracini
1 sibling, 1 reply; 8+ messages in thread
From: mferracini @ 2004-11-23 16:36 UTC (permalink / raw)
new problem :) (i try a solution of my problem but dont' work...)
package Foo is
package Bar is
procedure nulla;
end Bar;
end Foo;
package body Foo is
package body Bar is
type Dummy is new Integer;
procedure Nulla is
X : Dummy;
begin
X:=1;
end Nulla;
end Bar;
type N_array is array (1..10) of dummy;
begin
null;
end Foo;
--------------------------------
how make dummy visible? and if dummy is a task type?
thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: test with task
2004-11-23 11:12 Maurizio
2004-11-23 16:36 ` mferracini
@ 2004-11-23 16:37 ` mferracini
1 sibling, 0 replies; 8+ messages in thread
From: mferracini @ 2004-11-23 16:37 UTC (permalink / raw)
new problem :) (i try a solution of my problem but dont' work...)
package Foo is
package Bar is
procedure nulla;
end Bar;
end Foo;
package body Foo is
package body Bar is
type Dummy is new Integer;
procedure Nulla is
X : Dummy;
begin
X:=1;
end Nulla;
end Bar;
type N_array is array (1..10) of dummy;
begin
null;
end Foo;
--------------------------------
how make dummy visible? and if dummy is a task type?
thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: test with task
2004-11-23 16:36 ` mferracini
@ 2004-11-23 18:42 ` Jeffrey Carter
2004-11-25 10:52 ` mferracini
0 siblings, 1 reply; 8+ messages in thread
From: Jeffrey Carter @ 2004-11-23 18:42 UTC (permalink / raw)
mferracini wrote:
> package Foo is
> package Bar is
> procedure nulla;
> end Bar;
> end Foo;
>
> package body Foo is
> package body Bar is
> type Dummy is new Integer;
> procedure Nulla is
> X : Dummy;
> begin
> X:=1;
> end Nulla;
> end Bar;
> type N_array is array (1..10) of Dummy;
type N_Array is array (1 .. 10) of Bar.Dummy;
> begin
> null;
> end Foo;
--
Jeff Carter
"We use a large, vibrating egg."
Annie Hall
44
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: test with task
2004-11-23 18:42 ` Jeffrey Carter
@ 2004-11-25 10:52 ` mferracini
2004-11-25 20:23 ` Jeffrey Carter
2004-11-25 21:07 ` Björn Lundin
0 siblings, 2 replies; 8+ messages in thread
From: mferracini @ 2004-11-25 10:52 UTC (permalink / raw)
Jeffrey Carter wrote:
> > type N_array is array (1..10) of Dummy;
>
> type N_Array is array (1 .. 10) of Bar.Dummy;
>
foo.adb:10:40 "dummy" is not a visible entity of "bar"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: test with task
2004-11-25 10:52 ` mferracini
@ 2004-11-25 20:23 ` Jeffrey Carter
2004-11-25 21:07 ` Björn Lundin
1 sibling, 0 replies; 8+ messages in thread
From: Jeffrey Carter @ 2004-11-25 20:23 UTC (permalink / raw)
mferracini wrote:
> Jeffrey Carter wrote:
>
>>> type N_array is array (1..10) of Dummy;
>>
>>type N_Array is array (1 .. 10) of Bar.Dummy;
>
> foo.adb:10:40 "dummy" is not a visible entity of "bar"
By now I've forgotten the original post. If Dummy is not declared in the
visible part of the specification of Bar, then it cannot be referenced
outside Bar.
--
Jeff Carter
"In the frozen land of Nador they were forced to
eat Robin's minstrels, and there was much rejoicing."
Monty Python & the Holy Grail
70
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: test with task
2004-11-25 10:52 ` mferracini
2004-11-25 20:23 ` Jeffrey Carter
@ 2004-11-25 21:07 ` Björn Lundin
1 sibling, 0 replies; 8+ messages in thread
From: Björn Lundin @ 2004-11-25 21:07 UTC (permalink / raw)
To: comp.lang.ada
torsdag 25 november 2004 11:52 skrev mferracini:
> Jeffrey Carter wrote:
> > > type N_array is array (1..10) of Dummy;
> >
> > type N_Array is array (1 .. 10) of Bar.Dummy;
>
> foo.adb:10:40 "dummy" is not a visible entity of "bar"
Move the declaration of dummy to bar spec as in
package Foo is
package Bar is
type Dummy is new Integer;
procedure nulla;
end Bar;
end Foo;
package body Foo is
package body Bar is
-- moved to spec type Dummy is new Integer;
procedure Nulla is
X : Dummy;
begin
X:=1;
end Nulla;
end Bar;
type N_Array is array (1 .. 10) of Bar.Dummy;
end Foo;
/Björn
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
^ permalink raw reply [flat|nested] 8+ messages in thread
* test with task
@ 2004-12-17 13:17 Brittany
0 siblings, 0 replies; 8+ messages in thread
From: Brittany @ 2004-12-17 13:17 UTC (permalink / raw)
Move the declaration of dummy to bar spec as in
package Foo is
package Bar is
type Dummy is new Integer;
procedure nulla;
end Bar;
end Foo;
package body Foo is
package body Bar is
-- moved to spec type Dummy is new Integer;
procedure Nulla is
X : Dummy;
begin
X:=1;
end Nulla;
end Bar;
type N Array is array (1 .. 10) of Bar.Dummy;
end Foo;
/Bj rn
>
>
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
Post a follow-up to this message
Message 7 in thread
From: mferracini (maurizio.ferracini@gmail.com)
Subject: Re: test with task
View this article only
Newsgroups: comp.lang.ada
Date: 2004-11-23 08:37:22 PST
new problem :) (i try a solution of my problem but dont' work...)
package Foo is
package Bar is
procedure nulla;
end Bar;
end Foo;
package body Foo is
package body Bar is
type Dummy is new Integer;
procedure Nulla is
X : Dummy;
begin
X:=1;
end Nulla;
end Bar;
type N_array is array (1..10) of dummy;
begin
null;
end Foo;
--------------------------------
how make dummy visible? and if dummy is a task type?
thanks
http://www.geocities.com/gooksite/googlegrp.html
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-12-17 13:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 13:17 test with task Brittany
-- strict thread matches above, loose matches on Subject: below --
2004-11-23 11:12 Maurizio
2004-11-23 16:36 ` mferracini
2004-11-23 18:42 ` Jeffrey Carter
2004-11-25 10:52 ` mferracini
2004-11-25 20:23 ` Jeffrey Carter
2004-11-25 21:07 ` Björn Lundin
2004-11-23 16:37 ` mferracini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox