cc: [email protected]
Subject: Re: [ast-developers] Allowing '.' in namespace names?
--------


> Is there any reasons why namespaces do not allow '.' in names?
> I like to use namespace names like fr.pasteur.dev.bio.model2cpv or
> fr.pasteur.dev.bio.utilities to allow parallel and independent
> utilities for bioinformatics.
> 
> Ced
> 

You can do this by doing
        namespace fr
        {
                namespace pasteur
                {
                        namespace dev
                        {
                                namespace bio
                                {
                                        namespace model2cpv
                                        {
                                                ....
                                        }
                                }
                        }
                }
        }

The drawback with multiple levels is that name lookup may be longer.
It is the equivalent to using longer pathnames for files.

It would be faster t use
        namespace fr_pasteur_dev_bio_model2cpv

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to