[nem-en] Re: Re: Re: language shootout: cheap-concurrency (Dmitry
Ivankov)
Dmitry Ivankov
divanorama at gmail.com
Thu May 10 13:59:34 CEST 2007
Oops, maybe not that soon, there are some more less or more
related bugs (1013, 918).
Parsing context should be tracked better:
- this bug: there should be easy way to check if type being parsed is
interface
- 1013: in_variant should be refactored to use the same way
Another thought about this bug is that probably we should automatically add
abstract attribute to interface members at parse stage (not very good, but
there shouldn't be problems with it)
I suggest commenting out auto-attributes in
svn, until MainParser is upgraded.
Any objections?
P.S. tried latest svn version (first commented out, then uncommented back),
it fails on it too as the boot one.
On 5/10/07, Dmitry Ivankov <divanorama at gmail.com> wrote:
>
> Confirmed, it's a bug of recent update (c# 3.0 auto-properties) with boot
> compiler at least.
> Quick fix: try commenting out following in ncc/parsing/MainParser.n
>
> // Support autoproperty (see C# 3.0 specification).
> /*
> when (!(mods.Attributes %&& (NemerleAttributes.Abstract |
> NemerleAttributes.Extern)) && parms.IsEmpty)
> match (getter, setter)
> {
> | (Some(ClassMember.Function (_, _, FunBody.Abstract) as getr),
> Some(ClassMember.Function(_, _, FunBody.Abstract) as setr)) =>
>
> def embed = PExpr.Quoted (SyntaxElement.ClassMember (
> <[ decl: mutable field : $ret_type; ]>));
> mods.AddCustomAttribute (<[ $(mkname ("Nemerle") :
> name).InternalMacros.PropertyEmbeddedField ($embed) ]>);
>
> getr.Body = <[ field ]>;
> setr.Body = <[ field = value ]>;
>
> | _ => ()
> }
> */
>
> P.S. I think it'll be fixed very soon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070510/69f24d51/attachment.html
More information about the devel-en
mailing list