[Ironruby-core] class question.
Jim Deville
jdeville at microsoft.com
Thu May 1 11:22:53 EDT 2008
Private appears to be broken. Can you submit this as a bug please?
JD
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Unnikrishnan Nair
Sent: Wednesday, April 30, 2008 1:52 PM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] class question.
Please bear with me if it is already discussed; I am running the following code
class Tester
def sayHello
hi
puts "I am saying hello"
end
private
def hi
puts "Did I say hi?"
end
private :hi #doube checking private
end
p = Tester.new
p.hi
p.sayHello
As per ruby, it should fail but Ironruby runs through without any error. I am going through the code to see where it is performed.
Thanks.
Unni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080501/43c0a520/attachment.html>
More information about the Ironruby-core
mailing list