* Active record in Ada?
@ 2016-11-16 1:04 Victor Porton
2016-11-16 1:51 ` Victor Porton
2016-11-16 21:12 ` Victor Porton
0 siblings, 2 replies; 4+ messages in thread
From: Victor Porton @ 2016-11-16 1:04 UTC (permalink / raw)
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.
I wonder, is there any open source implementation of this in Ada?
--
Victor Porton - http://portonvictor.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Active record in Ada?
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
1 sibling, 0 replies; 4+ messages in thread
From: Victor Porton @ 2016-11-16 1:51 UTC (permalink / raw)
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.
>
> I wonder, is there any open source implementation of this in Ada?
Gnoga.Server.Model
But where are the docs?
--
Victor Porton - http://portonvictor.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Active record in Ada?
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
1 sibling, 1 reply; 4+ messages in thread
From: Victor Porton @ 2016-11-16 21:12 UTC (permalink / raw)
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.
> I wonder, is there any open source implementation of this in Ada?
--
Victor Porton - http://portonvictor.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Active record in Ada?
2016-11-16 21:12 ` Victor Porton
@ 2016-11-16 21:33 ` Victor Porton
0 siblings, 0 replies; 4+ messages in thread
From: Victor Porton @ 2016-11-16 21:33 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-16 21:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox