comp.lang.ada
 help / color / mirror / Atom feed
From: mario.blunk.gplus@gmail.com
Subject: recursive map specification
Date: Tue, 25 Jun 2019 01:21:02 -0700 (PDT)
Date: 2019-06-25T01:21:02-07:00	[thread overview]
Message-ID: <187147dc-94fe-4019-bc42-5b214db452db@googlegroups.com> (raw)

Hello,

I want to specify a recursive map. To simplify the problem I use the example of a person and its ancestors and ancestors ... The problem does not seem special but I haven't found a solution. The approach below does not compile:

type person is record
 name : unbounded_string;
end record;

package tree is new ordered_maps 
 (
 key_type => person,
 element_type => tree.map -- compiler error. "tree" undefined
 );

Any ideas ? Thanks a lot !

             reply	other threads:[~2019-06-25  8:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-25  8:21 mario.blunk.gplus [this message]
2019-06-25  8:44 ` recursive map specification Egil H H
2019-06-25  9:09   ` mario.blunk.gplus
2019-06-25  9:22     ` Egil H H
2019-06-25  9:24       ` mario.blunk.gplus
2019-06-26  5:23 ` Randy Brukardt
replies disabled

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