comp.lang.ada
 help / color / mirror / Atom feed
* We should introduce aliased types
@ 2014-08-01 18:54 Victor Porton
  2014-08-01 18:56 ` Victor Porton
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Victor Porton @ 2014-08-01 18:54 UTC (permalink / raw)


I think we should introduce aliased types to allow self-referencing objects 
and objects which we can access for object's internal purposes:

type T is aliased
   record
      Ptr: access all T;
   end;

Every value of an aliased type should be aliased (whether we specify that 
the particular value if aliased or don't specify).

Then we could create a self-referencing object by a code (say in Initialize) 
like this:

declare
   X: T;
begin
   X.Ptr = X.Unchecked_Access;
end;

-- 
Victor Porton - http://portonvictor.org


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

end of thread, other threads:[~2014-08-01 20:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-01 18:54 We should introduce aliased types Victor Porton
2014-08-01 18:56 ` Victor Porton
2014-08-01 19:16 ` Victor Porton
2014-08-01 19:47   ` Randy Brukardt
2014-08-01 19:57     ` Victor Porton
2014-08-01 19:44 ` Randy Brukardt
2014-08-01 19:49   ` Randy Brukardt
2014-08-01 20:39 ` sbelmont700

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