On 12/29/06, Markus Raab <[EMAIL PROTECTED]> wrote:

> int keyIsUser(const Key *key) {
>         return (key->flags & KEY_SWITCH_ISUSER)?1:0;
> }

yeah, but why not implementing it with return keyIsNameUser(key->key);?


Because they have different purposes.
keyIsUser() is cheap because it only compares bits, and is used on Key
objects.
keyNameIsUser() is much more expansive because it compares strings, if you
have them.


No, there is no useful case until we have a opposite example. I know the
documentation. Its not cheap, you have to maintain that useless flag in
every
backend.


No. The flag is only maintained in the higher level API. I can't see where
in backends they are used.

There is no clear semantic defined which information must be stored by the
backend anyway.


Then maybe documentation must be improved, and not code.
Backends can store the information they want in the private backend data.
The only thing that matters is that they must fulfill the API definitions,
which is described at http://www.libelektra.org/elektra-api/group__kdb.html

I will try to come up with another implementation soon, first ideas are in
the
repos. What about a branch in svn repos to have it there too? Merging of
useful things may be easier then.


I'm still not conviced there is a need for another implementation, and what
it will improve.

With the statement that we want a Linux registry and not a POSIX one, we can
only lose. You can't win anything with that. And because of what? To have
a
flag on a place where nobody would think of that it could be there?


Maybe. Nobody is making huge improvements on the base OS of systems like
Solaris, AIX, HP-UX. Only Linux and BSD are receiving improvements. But
anyway Elektra can be easily complied and tested on these other Unixes and
Windows.

Regards,
Avi


--
http://avi.alkalay.net/blog
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Registry-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/registry-list

Reply via email to