Re: [Vala] [PATCH] Implement alias functionality for 'using' directive
- From: Jürg Billeter <j bitron ch>
- To: Jim Peters <jim uazu net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] [PATCH] Implement alias functionality for 'using' directive
- Date: Mon, 04 Apr 2011 15:50:18 +0200
On Sun, 2011-04-03 at 18:16 -0500, Jim Peters wrote:
Jim Peters wrote:
Required to disambiguate symbol references in case of matches from
multiple 'using' statements.
I've implemented the alias functionality missing from 'using'. It
took 3 tries before I found a way that worked and didn't upset the
existing code too much.
As Vala tries to follow C#, I've done it the C# way. According to the
C# language spec 9.3.2, an alias can be used to disambiguate the case
which at the moment gives an "ambiguous reference" error.
I've added error messages that suggest the using directives that the
user can insert to resolve the issue.
This sounds great. I'll review the patch as soon as possible, but it
might make sense to attach it to a bug report in Bugzilla so that it
doesn't get lost in the mail. Hopefully, I'll soon have some time for
patch review in general.
Thanks,
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]