Re: [Vala] I'm missing Java's anonymous classes
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: Vala Mail List <vala-list gnome org>
- Subject: Re: [Vala] I'm missing Java's anonymous classes
- Date: Sat, 6 Aug 2011 08:13:58 +0800
This seems okay so far, but here comes the killer:
public class Display : Widget {
public Display() {
base(relayout_imp);
}
private void relayout_imp() { ... }
}
This crashes when relayout() is called because the 'relayout_imp'
argument to the constructor needs 'self' but 'self' hasn't been
initialised yet (so is NULL).
That must be a compiler error. If self is really NULL,
then even a direct call to a method from the constructor
won't work.
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]