comp.lang.ada
 help / color / mirror / Atom feed
* [Newbie] Amalgamate child units
@ 2004-06-12  9:40 PG
  2004-06-12  9:51 ` Marius Amado Alves
  2004-06-12 12:23 ` Simon Wright
  0 siblings, 2 replies; 8+ messages in thread
From: PG @ 2004-06-12  9:40 UTC (permalink / raw)


Hi,

When I want import some child units, like:
with A, A.B, A.B.B1, A.B.B2, A.C, A.C.C1...

is it possible to write: with A.* or something else ?

Thanks for your help.


Patrick






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-12  9:40 [Newbie] Amalgamate child units PG
@ 2004-06-12  9:51 ` Marius Amado Alves
  2004-06-12 12:13   ` Martin Krischik
  2004-06-12 12:23 ` Simon Wright
  1 sibling, 1 reply; 8+ messages in thread
From: Marius Amado Alves @ 2004-06-12  9:51 UTC (permalink / raw)
  To: comp.lang.ada

> When I want import some child units, like:
> with A, A.B, A.B.B1, A.B.B2, A.C, A.C.C1...
> 
> is it possible to write: with A.* or something else ?

No.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-12  9:51 ` Marius Amado Alves
@ 2004-06-12 12:13   ` Martin Krischik
  2004-06-12 13:46     ` Vinzent 'Gadget' Hoefler
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Krischik @ 2004-06-12 12:13 UTC (permalink / raw)


Marius Amado Alves wrote:

>> When I want import some child units, like:
>> with A, A.B, A.B.B1, A.B.B2, A.C, A.C.C1...
>> 
>> is it possible to write: with A.* or something else ?
> 
> No.

If you think Java here remember that "with A.B.B1" loads a package and not
just a class. So "with A.B.B1" really is a "import A.B.B1.*".

With Regards

Martin
-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-12  9:40 [Newbie] Amalgamate child units PG
  2004-06-12  9:51 ` Marius Amado Alves
@ 2004-06-12 12:23 ` Simon Wright
  1 sibling, 0 replies; 8+ messages in thread
From: Simon Wright @ 2004-06-12 12:23 UTC (permalink / raw)


"PG" <leviquet@free.fr> writes:

> Hi,
> 
> When I want import some child units, like:
> with A, A.B, A.B.B1, A.B.B2, A.C, A.C.C1...
> 
> is it possible to write: with A.* or something else ?

No, but

   with A.B.B1;

implies A and A.B, so your sample as far as it goes could be written

   with A.B.B1;
   with A.B.B2;
   with A.C.C1;

However I'm not at all sure that it adds to the clarity to do
this. It's not obvious, really, that you are in fact interested in A.B
...

-- 
Simon Wright                               100% Ada, no bugs.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-12 12:13   ` Martin Krischik
@ 2004-06-12 13:46     ` Vinzent 'Gadget' Hoefler
  2004-06-14  6:09       ` Martin Krischik
  0 siblings, 1 reply; 8+ messages in thread
From: Vinzent 'Gadget' Hoefler @ 2004-06-12 13:46 UTC (permalink / raw)


Martin Krischik wrote:

>If you think Java here remember that "with A.B.B1" loads a package and not
>just a class. So "with A.B.B1" really is a "import A.B.B1.*".

Not in respect to visibility. "import" in Java is more like "use" in
Ada (and an implied "with" for all-and-everything).


Vinzent.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-12 13:46     ` Vinzent 'Gadget' Hoefler
@ 2004-06-14  6:09       ` Martin Krischik
  2004-06-14 19:02         ` Mark Lorenzen
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Krischik @ 2004-06-14  6:09 UTC (permalink / raw)


Vinzent 'Gadget' Hoefler wrote:

> Martin Krischik wrote:
> 
>>If you think Java here remember that "with A.B.B1" loads a package and not
>>just a class. So "with A.B.B1" really is a "import A.B.B1.*".
> 
> Not in respect to visibility. "import" in Java is more like "use" in
> Ada (and an implied "with" for all-and-everything).

True. But the OP hat the word "[Newbie]" in his subject so I wanted to keep
the answer simple.

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-14  6:09       ` Martin Krischik
@ 2004-06-14 19:02         ` Mark Lorenzen
  2004-06-15  6:57           ` Vinzent 'Gadget' Hoefler
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Lorenzen @ 2004-06-14 19:02 UTC (permalink / raw)


Martin Krischik <krischik@users.sourceforge.net> writes:

> Vinzent 'Gadget' Hoefler wrote:
> 
> > Martin Krischik wrote:
> > 
> >>If you think Java here remember that "with A.B.B1" loads a package and not
> >>just a class. So "with A.B.B1" really is a "import A.B.B1.*".
> > 
> > Not in respect to visibility. "import" in Java is more like "use" in
> > Ada (and an implied "with" for all-and-everything).
> 
> True. But the OP hat the word "[Newbie]" in his subject so I wanted to keep
> the answer simple.

Good thinking. Far too often, we see long and endless discussions over
tiny details. This is all very well if you are an Ada professional,
but newbies deserve a short and simple answer which solves their
problem. Otherwise we will just scare them away from Ada.

> 
> With Regards
> 
> Martin
> 
> -- 
> mailto://krischik@users.sourceforge.net
> http://www.ada.krischik.com

- Mark Lorenzen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Newbie] Amalgamate child units
  2004-06-14 19:02         ` Mark Lorenzen
@ 2004-06-15  6:57           ` Vinzent 'Gadget' Hoefler
  0 siblings, 0 replies; 8+ messages in thread
From: Vinzent 'Gadget' Hoefler @ 2004-06-15  6:57 UTC (permalink / raw)


Mark Lorenzen wrote:

>but newbies deserve a short and simple answer which solves their
>problem.

Well, as long as the short and simple answer is quite correct, I agree
with you here. So next time I will just shut up. :)


Vinzent.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-06-15  6:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-12  9:40 [Newbie] Amalgamate child units PG
2004-06-12  9:51 ` Marius Amado Alves
2004-06-12 12:13   ` Martin Krischik
2004-06-12 13:46     ` Vinzent 'Gadget' Hoefler
2004-06-14  6:09       ` Martin Krischik
2004-06-14 19:02         ` Mark Lorenzen
2004-06-15  6:57           ` Vinzent 'Gadget' Hoefler
2004-06-12 12:23 ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox