Re: [Vala] [Genie] Need help with "for" statement



On Sat, 2009-06-20 at 20:04 +0200, Nicolas wrote:
Hi,

Someone know how can i convert this from c# to vala or genie:

for (int i=0; i < linesPerPage && line < numLines; i++)

Genie:

var i = 0
while (i < linesPerPage and line < numLines)
    // do blah here
    i++
    

jamie




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