From: Miquel Date: 2007-01-26T01:13:25+09:00 Subject: Re: Class & modifiers modifiers EL Fri, 26 Jan 2007 00:55:18 +0900 Yukihiro Matsumoto escrigu��: > Hi, > > In message "Re: Class & modifiers modifiers" > on Thu, 25 Jan 2007 23:58:09 +0900, Miquel > writes: > > |module A > | > | protected > | > | def b_method() > | return 'foo->A' > | end > | > |end > | > |class B > | include A > | > | def b_method() > | return 'foo->B' > | end > | > |end > | > |Is B's method b_method() protected? Is it public? What the hell is > this |method (;-) ) ? > > public. I don't recommend to override protected method though. > Why not? You might have a protected method in a module which has no code or only an exception (something like an abstract method in Java/C#) and has a different behaviour in the different classes which include it. In this case it must have been overriden. What do you think about this? Btw, congratulations for this awesome language you have written. > matz. > Miquel ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m�viles desde 1 c�ntimo por minuto. http://es.voice.yahoo.com