[Mono-list] [newbie] Class resolvement
Piers Haken
piersh@friskit.com
Fri, 7 Jun 2002 18:47:03 -0700
I get:
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :lvl1
lvl3 :lvl2
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :lvl2
lvl3 :lvl3
I also had to change the class name from 'Main' as I got the error:
foo.cs(4,21): error CS0542: 'Main': member names cannot be the same as
their
enclosing type
-----Original Message-----
From: Dennis Haney [mailto:davh@davh.dk]
Sent: Friday, June 07, 2002 5:38 PM
To: mono-list@ximian.com
Subject: [Mono-list] [newbie] Class resolvement
I cant make heads or tails of what mcs gives me with this, so could
someone please run it using m$'s compiler?
mcs says:
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :lvl1
lvl3 :lvl2
Super:Super
lvl1 :Super
lvl2 :Super
lvl3 :Super
Super:Super
lvl1 :Super
lvl2 :lvl2
lvl3 :lvl3
My guess would have been (I did start looking a C# syntax 4 hours ago):
Super:Super lvl1 :lvl1 lvl2 :lvl2 lvl3 :lvl3 Super:Super lvl1 :Super
lvl2 :lvl1 lvl3 :lvl2 Super:Super lvl1 :lvl1 lvl2 :lvl2 lvl3 :lvl3
Super:Super lvl1 :Super lvl2 :lvl1 lvl3 :lvl2 Super:Super lvl1 :lvl1
lvl2 :lvl2 lvl3 :lvl3 Super:Super lvl1 :Super lvl2 :lvl1 lvl3 :lvl3
Or something like that...
--
Dennis
use Inline C => qq{void p(char*g){
printf("Just Another %s Hacker\n",g);}};p("Perl");