Re: [Vala] Segfault
- From: Luca Bruno <lethalman88 gmail com>
- To: David Boesner <david boesner googlemail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Segfault
- Date: Thu, 28 Jun 2012 18:55:58 +0200
On Thu, Jun 28, 2012 at 12:02 PM, David Boesner <
david boesner googlemail com> wrote:
public SuperClass(int data) {
this.data = data;
stdout.printf("3");
//base(); ////// Here is a segfault
//////////////////////////////////////
}
You can't access "this" before you construct the instance with base(). Call
it before this.data = data.
--
www.debian.org - The Universal Operating System
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]