comp.lang.ada
 help / color / mirror / Atom feed
From: "Thomas Løcke" <tl@ada-dk.org>
Subject: Re: Introducing memcache-ada, a memcached client in Ada
Date: Mon, 20 Dec 2010 10:36:11 +0100
Date: 2010-12-20T10:36:11+01:00	[thread overview]
Message-ID: <4d0f238b$0$23754$14726298@news.sunsite.dk> (raw)
In-Reply-To: <4d0f1ed7$0$6990$9b4e6d93@newsspool4.arcor-online.net>

On 2010-12-20 11:16, Georg Bauhaus wrote:
> On 20/12/2010 09:25, Thomas L�cke wrote:
>> I do though have four suggestions:
>>
>> 1. Declare all the string literals ("STORED", "NOT_FOUND" and such) as
>> constants in the specification.
>
> Not sure why should they be public?  These are protocol words
> that I think a user will not want to deal with.


Do they have to be made public in order to be declared as constants in
the specification? Couldn't they be declared in the private part of the
package?

I'd prefer declaring this once:

Not_Found : constant String := "NOT_FOUND";

And then using Not_Found throughout the package, instead of having
multiple "NOT_FOUND" literals.

OTOH I do see your point about visibility.  :o)

-- 
Regards,
Thomas L�cke

Email: tl at ada-dk.org
Web: http:ada-dk.org
IRC nick: ThomasLocke



  reply	other threads:[~2010-12-20  9:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20  0:43 Introducing memcache-ada, a memcached client in Ada R Tyler Croy
2010-12-20  8:25 ` Thomas Løcke
2010-12-20 10:16   ` Georg Bauhaus
2010-12-20  9:36     ` Thomas Løcke [this message]
2010-12-20 20:14     ` R Tyler Croy
2010-12-21  0:56     ` Randy Brukardt
2010-12-21  7:52       ` Dmitry A. Kazakov
2010-12-20 19:36   ` Jeffrey Carter
2010-12-20 20:16     ` R Tyler Croy
2010-12-20 22:03     ` Simon Wright
2010-12-20 22:48       ` R Tyler Croy
2010-12-20 23:44         ` Simon Wright
2010-12-21 11:10           ` Georg Bauhaus
2010-12-21 11:21             ` Georg Bauhaus
replies disabled

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