Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use BasicObject for cleanroom #1415

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Jan 11, 2017

BasicObject has following methods:

>> BasicObject.instance_methods
=> [:!, :==, :!=, :__send__, :equal?, :instance_eval, :instance_exec, :__id__]

BasicObject has following methods:

    >> BasicObject.instance_methods
    => [:!, :==, :!=, :__send__, :equal?, :instance_eval, :instance_exec, :__id__]
@okkez
Copy link
Contributor Author

okkez commented Jan 11, 2017

BasicObject has been added since Ruby 1.9.

@repeatedly repeatedly merged commit 9d1ddc5 into fluent:master Jan 12, 2017
@repeatedly
Copy link
Member

Thanks

@okkez okkez deleted the use-basic-object-for-clean-room branch January 30, 2017 07:38
@repeatedly
Copy link
Member

@okkez After this patch, ${ENV['foo']} with enable_ruby raises an error: https://groups.google.com/forum/#!topic/fluentd/uwjgWumxlLs
Could you investigate it?

@okkez
Copy link
Contributor Author

okkez commented Feb 10, 2017

I'm not sure about that. I've created new issue on bugs.ruby-lang.org.
https://bugs.ruby-lang.org/issues/13204

@okkez
Copy link
Contributor Author

okkez commented Feb 10, 2017

nobu said:

Top level constants are constants defined in Object, but BasicObject does not inherit Object.

@repeatedly
Copy link
Member

Hmm... could you revert it?

@repeatedly
Copy link
Member

ah, wait. easy to revert via web. I will do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants