comp.lang.ada
 help / color / mirror / Atom feed
* Strange error message
@ 2014-06-01 10:24 Charly
  2014-06-01 11:11 ` Dmitry A. Kazakov
  2014-06-01 21:18 ` Robert A Duff
  0 siblings, 2 replies; 13+ messages in thread
From: Charly @ 2014-06-01 10:24 UTC (permalink / raw)


Hi,

when I defined a class hierarchy I encountered a problem, that I could reduce 
to the following few lines:

This version compiles without problems:
-----------------
package Test is

   type Base is tagged private;
   function Create return Base;

   type High is new Base with private;

private

   type Base is tagged null record;

   type High is new Base with null record;

end Test;
-----------------

but this one

-----------------
package Test is

   type Base is tagged private;
   function Create return Base;

   type High is new Base with private;

private

   type Base is tagged null record;

   type High is new Base with record     --
      H_Val : Natural := 0;              -- these lines are changed
   end record;                           --

end Test;
-----------------

does not compile an I get an error:

   type must be declared abstract or "Create" overridden

Why do I have to overide the function Create for type High.
I don't see the necessity.

Btw. I'm using GNAT GPL 2014 but the same happens with 2013 version.

Charly
  

^ permalink raw reply	[flat|nested] 13+ messages in thread
* strange error message
@ 2002-11-13 10:36 evangeli
  2002-11-13 15:05 ` Stephen Leake
  0 siblings, 1 reply; 13+ messages in thread
From: evangeli @ 2002-11-13 10:36 UTC (permalink / raw)


hi all

does anybody know the meaning of this message (at the runtime) :

------------------------------------------------
Xlib: unexpected async reply (sequence 0x1530)!
------------------------------------------------

my code has been compiled with gnat 3.14
i post this message just in case if someone got this message and 
resolved the problem

thanks for any response.

Sami Evangelista




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

end of thread, other threads:[~2014-06-02 19:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-01 10:24 Strange error message Charly
2014-06-01 11:11 ` Dmitry A. Kazakov
2014-06-01 12:50   ` Charly
2014-06-01 13:54     ` Simon Wright
2014-06-01 21:18 ` Robert A Duff
2014-06-02  7:47   ` Dmitry A. Kazakov
2014-06-02 13:49     ` Robert A Duff
2014-06-02 14:55       ` Dmitry A. Kazakov
2014-06-02 17:24         ` Robert A Duff
2014-06-02 18:39       ` Shark8
2014-06-02 19:56   ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2002-11-13 10:36 strange " evangeli
2002-11-13 15:05 ` Stephen Leake

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