[nem-en] accessor macro question

mei mei at work.email.ne.jp
Sat May 27 07:24:40 CEST 2006


Hi,

I want to know about accessor macro.

-- sample.n
using System;
using System.IO;
using Nemerle.Utility;

public class Foo {
    [Accessor(flags=WantSetter)] mutable _bar : string;
}
--

compiled sample.n to dll(assembly) and use from C#.
but error CS1545 occurred.

then, I disassemble the compiled asseimbly by Reflector.

--
public class Foo
{
      // Methods
      public Foo();

      // Properties
      public string this[string] { get; set; }

      // Fields
      private string _bar;
}
-- 
there is indexer, but Bar property is not exists.

Please give me instructions for using the accessor macro.


Thanks.

-- 
akiramei <mei at work.email.ne.jp>



More information about the devel-en mailing list