comp.lang.ada
 help / color / mirror / Atom feed
* NULL_AVL_Tree
@ 2013-10-29 14:21 Seshu Kumar
  2013-10-29 14:40 ` NULL_AVL_Tree Adam Beneschan
  0 siblings, 1 reply; 2+ messages in thread
From: Seshu Kumar @ 2013-10-29 14:21 UTC (permalink / raw)


Hello,

here, my code is 
type AVL_Tree is private;
Null_Avl_Tree : constant Avl_Tree;

in priviate i define:
   type AVL_Tree is record
      Rep : AVL_Node_Ref;
      Size : Natural := 0;
   end record;

   Null_Avl_Tree : constant Avl_Tree := ( Rep => null, Size => 0 );


here,  m accessing NULL_AVL_Tree from other file, is it gives me the same values
using like
VCAST_BITS_1_1_AVL : VCAST_BITS_TYPE_1_1_AVL :=
   ( others =>  VCAST_COVER_IO.Null_Avl_Tree );

here, i think my Null_Avl_tree is not null.

Thanks in advance.

Seshukumar.

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

* Re: NULL_AVL_Tree
  2013-10-29 14:21 NULL_AVL_Tree Seshu Kumar
@ 2013-10-29 14:40 ` Adam Beneschan
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Beneschan @ 2013-10-29 14:40 UTC (permalink / raw)


On Tuesday, October 29, 2013 7:21:59 AM UTC-7, Seshu Kumar wrote:
> Hello,
> 
> here, my code is 
> type AVL_Tree is private;
> Null_Avl_Tree : constant Avl_Tree;
> 
> in priviate i define:
>    type AVL_Tree is record
>       Rep : AVL_Node_Ref;
>       Size : Natural := 0;
>    end record;
> 
>    Null_Avl_Tree : constant Avl_Tree := ( Rep => null, Size => 0 );
> 
> here,  m accessing NULL_AVL_Tree from other file, is it gives me the same values
> 
> using like
> 
> VCAST_BITS_1_1_AVL : VCAST_BITS_TYPE_1_1_AVL :=
>    ( others =>  VCAST_COVER_IO.Null_Avl_Tree );
> 
> here, i think my Null_Avl_tree is not null.
> 
> Thanks in advance.

There's not enough information here.  If the problem is that you think Null_Avl_Tree has a value that's different from what you expect, please post some code that produces some result that's different from what you expect, and tell us what the output is and what you expected the output to be.

                               -- Adam

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

end of thread, other threads:[~2013-10-29 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-29 14:21 NULL_AVL_Tree Seshu Kumar
2013-10-29 14:40 ` NULL_AVL_Tree Adam Beneschan

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