General

Profile

caschip (Aad Schippers)

  • Login: caschip
  • Registered on: 06/02/2017
  • Last sign in: 06/05/2017

Issues

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

Activity

06/05/2017

10:02 AM Ruby Bug #13623: meta-programming, adding sub-module fails with syntax error
Ok, you make it very clear. Indeed, in working_meta '`Bar`' is not a constant but a name when statement '`module`' is evaluated. Statement '`module`' syntactically requires a name ~~that does not exist in the scope yet.~~ That name can b... caschip (Aad Schippers)

06/03/2017

06:43 AM Ruby Bug #13623: meta-programming, adding sub-module fails with syntax error
So you are saying this is how it should work and not a bug? If that is true, I should close this. What do you mean when you say that `Object::const_get('Foo')::Bar` is syntactically a constant. Its contains characters that are not approp... caschip (Aad Schippers)

06/02/2017

02:43 PM Ruby Bug #13623: meta-programming, adding sub-module fails with syntax error
~~~ruby
module Foo
end
# Failing with syntax error is the code below
module Object::const_get( 'Foo' )
module Bar
end
end
~~~
caschip (Aad Schippers)
02:37 PM Ruby Bug #13623 (Rejected): meta-programming, adding sub-module fails with syntax error
The goal is to add a sub-module to a higher level module. The higher level module is derived from its name in a string. This works in one case and gives an unexpected syntax error in another case.
```
failing_meta:4: syntax error, un...
caschip (Aad Schippers)

Also available in: Atom