Hi, 2009/10/25 Patrick Castle <[email protected]>: > I've been trying to learn Genie and it's going OK for the moment. However, I > was > trying to translate a Vala example using MarkupParser in GLib and I was coming > unstuck on how to define multiple anonymous functions in a comma-separated > parameter list. > [...] > I attempted with: > > parser : MarkupParser = { def (ctx, elem, attribute_names, > attribute_values) > print("start |%s|\n", elem) > for i : int = 0 to attribute_names.length > print("Attribute name: %s, value: %s\n", attribute_names[i], > attribute_values[i]), \ > def (ctx, elem) > print("end |%s|\n", elem), \ > def (ctx, text, text_len) > print("text %ld |%s|\n", (long)text_len, text), \ > null, null } > I think it should be that way, but this doesn't work, I think this is a bug. I've already came across this (I'm trying to port a python library to genie), and passing even a single parameter won't work, I think Genie needs a test suite (a good start is to translate some of the examples on the wiki, I'll try to do some tonight).
Abderrahim _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
