[nem-en] Re: Re: Re: language shootout: cheap-concurrency (Dmitry
Ivankov)
Dmitry Ivankov
divanorama at gmail.com
Thu May 10 04:14:31 CEST 2007
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
On 5/10/07, Micky Latowicki <biosap at gmail.com> wrote:
>
> Good of you to correct me.
>
> So I tried reinstalling from scratch. But nemerle wouldn't build.
>
> I now get this error message:
>
> COMPILE [stage2] Nemerle.Compiler.dll
> ______......................................................
> hierarchy/TypeInfo.n:80:24:80:27: error: interface method cannot have body
> hierarchy/TypeInfo.n:80:29:80:32: error: interface method cannot have body
> hierarchy/TypeInfo.n:95:28:95:31: error: interface method cannot have body
> hierarchy/TypeInfo.n:95:33:95:36: error: interface method cannot have body
> error: interface members are not allowed to have any attributes
> specified, except 'new'
> error: fields cannot be defined inside interface
> error: interface members are not allowed to have any attributes
> specified, except 'new'
> error: fields cannot be defined inside interface
> make[3]: *** [out.stage2/Nemerle.Compiler.stage2.dll] Error 1
>
> Any ideas?
>
> On 5/9/07, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> > No no! Dimitry meant Nemerle.dll and Nemerle.Compiler.dll - it seems
> > that you have incompatible versions of those assemblies. Maybe the old
> > Nemerle.dll is hanging somewhere in GAC or in local directory.
> >
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070510/791aa996/attachment.html
More information about the devel-en
mailing list