[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] Code generation error
- From: Jürg Billeter <j bitron ch>
- To: Daniel Svensson <dsvensson gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Code generation error
- Date: Thu, 03 Jan 2008 22:47:14 +0000
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]