comp.lang.ada
 help / color / mirror / Atom feed
* Re: A bunch of questions that come after "Hello world"
@ 2002-11-18 10:32 Grein, Christoph
  0 siblings, 0 replies; 20+ messages in thread
From: Grein, Christoph @ 2002-11-18 10:32 UTC (permalink / raw)


> > Ada does not support multi-dispatch.  If you have two controlling
> > operands, they both have to have the same tag.
> 
> What do you mean?
> 
> procedure( X: Type1'Class; Y: Type2'Class);

The above does not dispatch.
h.

procedure P (X: Type1; Y: Type2);

where both Type1 and Type2 are tagged is illegal.

procedure P (X, Y: TypeX);

P (X, Y);

This call dispatches when X or Y is a class-wide object. Then X and Y must have 

have the same tag.



^ permalink raw reply	[flat|nested] 20+ messages in thread
* A bunch of questions that come after "Hello world"
@ 2002-11-13 20:44 Wojtek Narczynski
  2002-11-13 20:57 ` Robert A Duff
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Wojtek Narczynski @ 2002-11-13 20:44 UTC (permalink / raw)


Hello,

I am trying to write some Ada code after three years of Java work. I
have some questions, likely stupid.

1. Collections. I understand that Ada doesn't define collection
packages as a part of the standard. Pity, but maybe there is some
"rationale for that. Okay, what is the most commonly used library?
Booch components?

2. Could somebody confirm that I cannot define a procedure / function
as a member of a "record", but I sure can as a member of "protected"?
Hmm.

3. Can I define new 'Attributes or only redefine (some) existing ones?

Thanks for your time!



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

end of thread, other threads:[~2002-11-19  8:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-18 10:32 A bunch of questions that come after "Hello world" Grein, Christoph
  -- strict thread matches above, loose matches on Subject: below --
2002-11-13 20:44 Wojtek Narczynski
2002-11-13 20:57 ` Robert A Duff
2002-11-14 10:18   ` Wojtek Narczynski
2002-11-14 11:21     ` David C. Hoos, Sr.
2002-11-14 19:51     ` tmoran
2002-11-14 21:51     ` Robert A Duff
2002-11-15 17:50       ` Wojtek Narczynski
2002-11-15 23:07         ` Robert A Duff
2002-11-18 10:24           ` Wojtek Narczynski
2002-11-18 11:54             ` Dmitry A. Kazakov
2002-11-18 16:24               ` Wojtek Narczynski
2002-11-18 21:19                 ` Robert A Duff
2002-11-19  8:48                 ` Dmitry A. Kazakov
2002-11-13 22:06 ` Martin Dowie
2002-11-14 17:48   ` Pascal Obry
2002-11-14 18:53     ` David C. Hoos
2002-11-14 22:36     ` Martin Dowie
2002-11-15  1:25       ` Jeffrey Carter
2002-11-13 22:31 ` Stephen Leake

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