Hi Daniel,

On Thu, 2007-12-27 at 12:54 +0100, Daniel Svensson wrote:
> Hi, think I found a bug in vala.
> 
> xc.playback_current_id().notifier_set((res, u) => {
>   int id;
>   res.get_int(out id);
>   stdout.printf("%d\n", id);
> });
> 
> Just tried out lambda for the first time. It will generate:
> 
> xmmsc_result_notifier_set ((_tmp1 = xmmsc_playback_current_id (xc)),
> ((xmmsc_result_notifier_t) __lambda0), NULL);
> 
> But _tmp1 will be declared in __lambda0 function and not in the
> function it's used.

I can't reproduce the bug here, do you have a stand-alone testcase?

Jürg

_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to