Re: [Vala] [Genie] SDK



thats awesome - thanks

some quick hints about more concise genie syntax in case you are
interested:

1) var can be used in block mode so you dont have to type var on each
line if you are initialising more than one variable at a time

EG

var
  x =1
  s = "hello"
  
2) print is a built in function in genie and is same as stdout.printf
("%s/n", s). so you can just say: print s 

3) private methods do not have to have the private keyword if the name
of the method starts with an underscore (as per python). Anything that
starts with an underscore is private in genie

4) you can use closures on signal handlers to avoid creating extra
methods to handle signal events

EG 
f.my_event += def (t, a)
   print "event was detected with value %d", a


jamie

On Sat, 2009-06-13 at 12:24 +0200, Nicolas wrote:
Hi,

For all persons interested, I created a small sdk of my genie test !
You can download it here: 
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19139

Nicolas.

_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




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