From: Victor Porton <porton@narod.ru>
Subject: Re: We should introduce aliased types
Date: Fri, 01 Aug 2014 21:56:19 +0300
Date: 2014-08-01T21:56:19+03:00 [thread overview]
Message-ID: <lrgnsf$di6$2@speranza.aioe.org> (raw)
In-Reply-To: lrgnoc$di6$1@speranza.aioe.org
Victor Porton wrote:
> 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;
It sometimes make sense to make only the private view of a type aliased.
--
Victor Porton - http://portonvictor.org
next prev parent reply other threads:[~2014-08-01 18:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-01 18:54 We should introduce aliased types Victor Porton
2014-08-01 18:56 ` Victor Porton [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox