General

Profile

kwstannard (Kelly Stannard)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

05/05/2015

02:15 PM Ruby Bug #10702: Constant look up inconsistency with constants defined in included modules
Thanks for the response. I can't say that it is intuitive at all, but I think I get what is happening now. kwstannard (Kelly Stannard)

04/14/2015

03:06 PM Ruby Bug #10702: Constant look up inconsistency with constants defined in included modules
Kelly Stannard wrote:
> ~~~
> ...
Okay, so I re-reading the blog post a 5th time, I think I get that "`module X; B; end`" is using ancestry and not lexical, which would explain why "`module X; module Y; B; end; end`" fails. I don't get...
kwstannard (Kelly Stannard)
02:34 PM Ruby Bug #10702: Constant look up inconsistency with constants defined in included modules
Edit: go ahead and skip the rest of this post. Leaving because I don't believe in deleting responses.
I think that it should be found in the lexical lookup. Let me try explaining this again. My understanding of getting nested constant...
kwstannard (Kelly Stannard)

01/07/2015

02:28 PM Ruby Bug #10702: Constant look up inconsistency with constants defined in included modules
Jack Nagel wrote:
> `D` does not inherit from `C` or `A`, so it does not have access to `B`.
> ...
I looked at that blog before I posted and if constant lookup worked like it says then what I am doing would work because D is nested in ...
kwstannard (Kelly Stannard)
03:09 AM Ruby Bug #10702 (Rejected): Constant look up inconsistency with constants defined in included modules
https://gist.github.com/kwstannard/c0f722976ba023cc5755
```ruby
module A
module B
end
end
module C
include A
puts B.inspect # => A::B
class D
puts B.inspect rescue puts 'failed' # => failed
end
B =...
kwstannard (Kelly Stannard)

Also available in: Atom