comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: Active record in Ada?
Date: Wed, 16 Nov 2016 23:33:22 +0200
Date: 2016-11-16T23:33:22+02:00	[thread overview]
Message-ID: <o0ijb0$60j$1@gioia.aioe.org> (raw)
In-Reply-To: o0ii4i$43g$1@gioia.aioe.org

Victor Porton wrote:

> Victor Porton wrote:
> 
>> Is there such a thing as implemented "active record" pattern for Ada?
>> 
>> I realize that it can't be done with .member accessors for attributes
>> because Ada does not support dynamic attributes, but something similar
>> enough to classic active record can be done with .Get("member") and
>> .Set("member", ...) style.
> 
> Wait, it can be done with implicit dereferences.

Well not x.member but x("member"). This is ok also, however.

in Ada2012.

>> I wonder, is there any open source implementation of this in Ada?
> 
-- 
Victor Porton - http://portonvictor.org


      reply	other threads:[~2016-11-16 21:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-16  1:04 Active record in Ada? Victor Porton
2016-11-16  1:51 ` Victor Porton
2016-11-16 21:12 ` Victor Porton
2016-11-16 21:33   ` Victor Porton [this message]
replies disabled

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