Re: [Vala] bug in namespace gestion ?



Hi Frederic,

On Fri, 2008-08-08 at 09:31 +0200, picca wrote:
I attached a file that do not compile with 
valac -C
I expected to declare a Hkl namespace, a class PseudoAxis and a
namespace Pseudoaxis and a class Engine in the hkl.PseudoAxis namepsace
but vala complaine about an already existing Hkl.PseudoAxis class.

You can't have both, a class and a namespace, with the same name.
However, a class can have inner classes, e.g.

public class Hkl.PseudoAxis {
        double d;

        public class Engine {
                double e;
        }
}

Jürg





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]