What have you found for these years?

2010-08-18

what would you expect?

class Base
  C = 1
end
class Derived < Base
end

Base.const_defined?(:C) # => true
Derived.const_defined?(:C) # => ?





The answer is, true in 1.9, false in 1.8.
What would you expect? I vote for 1.9.

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0