Re: [Vala] (no subject)



In the class right before the constructor I've declared the property using:

public int n_part { get; set; default=0; }

and as mentioned, I'm able to use it without error inside of the
constructor.

Geoff

On Wed, Jan 18, 2012 at 10:52 AM, Abderrahim Kitouni <a kitouni gmail com>wrote:

في ر، 18-01-2012 عند 10:28 -0800 ، كتب Geoff Johnson:
Later on in the code I want to use n_part but whenever I do I get the
following error during compile:

julia.vala:166.21-166.30: error: Relational operation not supported for
types `int' and `null'
        for (i = 0; i < n_part; i++) {

Are you sure i is already defined before? If not, that would explain
this error message (although I'd expect another error before this one).

HTH,
Abderrahim




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