|
Re: accessor macro question: msg#00026lang.nemerle.devel
When I compile and dissasemble this program I get: .class public auto ansi Foo extends [mscorlib]System.Object { .field private string _bar .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { // Code size 7 (0x7) .maxstack 2 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method Foo::.ctor .method public hidebysig specialname instance string get_Bar() cil managed { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld string Foo::_bar IL_0006: ret } // end of method Foo::get_Bar .method public hidebysig specialname instance void set_Bar(string 'value') cil managed { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldarg.1 IL_0002: stfld string Foo::_bar IL_0007: ret } // end of method Foo::set_Bar .property string Bar(string) { .get instance string Foo::get_Bar() .set instance void Foo::set_Bar(string) } // end of property Foo::Bar } // end of class Foo I'm not sure how did you get the code you mentioned, but it must be some mistake... 2006/5/27, mei <mei@xxxxxxxxxxxxxxxx>: Hi, -- Kamil Skalski http://nazgul.omega.pl
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | accessor macro question, mei |
|---|---|
| Next by Date: | Re: accessor macro question, mei |
| Previous by Thread: | accessor macro question, mei |
| Next by Thread: | Re: accessor macro question, mei |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |