comp.lang.ada
 help / color / mirror / Atom feed
* Ada0Y anonymous access to self type
@ 2004-09-30 20:31 Wojtek Narczynski
  2004-09-30 20:47 ` Matthew Heaney
  2004-09-30 23:49 ` Randy Brukardt
  0 siblings, 2 replies; 4+ messages in thread
From: Wojtek Narczynski @ 2004-09-30 20:31 UTC (permalink / raw)
  To: wojtek

Hello,

I am trying to understand the Ada0Y goodies already implemented in gcc
mainline. I've just run into such an issue:

type Foo_Type;

-- This compiles
type Bar_Type is record
   Foo : access Foo_Type;
end record;

-- This does not
type Foo_Type is record
   Next : access Foo_Type;
end record;

For the Foo_Type record the compiler complains that "type declaration
cannot refer to itself", but does this restriction serve any purpose?

There was something about taming the "access types proliferation" in Ada0Y...

Regards,
Wojtek



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

end of thread, other threads:[~2004-09-30 23:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30 20:31 Ada0Y anonymous access to self type Wojtek Narczynski
2004-09-30 20:47 ` Matthew Heaney
2004-09-30 21:07   ` Wojtek Narczynski
2004-09-30 23:49 ` Randy Brukardt

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