[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] bug in namespace gestion ?
- From: Jürg Billeter <j bitron ch>
- To: picca <picca synchrotron-soleil Fr>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] bug in namespace gestion ?
- Date: Fri, 08 Aug 2008 09:39:19 +0200
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]