Feature #5174

Export ruby_init_prelude()

Added by Shugo Maeda over 2 years ago. Updated over 1 year ago.

[ruby-core:38870]
Status:Feedback
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:core
Target version:next minor

Description

Please export rubyinitprelude() so that ruby embedded applications such as modruby can call it without calling rubyoptions().

export_ruby_init_prelude.diff Magnifier (723 Bytes) Shugo Maeda, 08/09/2011 02:19 PM

History

#1 Updated by Christoph Kappel over 2 years ago

That would be really helpful! I know that ruby wasn't meant for embedding, but it makes life easier for embedders with just minor changes.

#2 Updated by Shyouhei Urabe about 2 years ago

  • Status changed from Open to Assigned

#3 Updated by Yusuke Endoh over 1 year ago

  • Target version changed from 2.0.0 to next minor

#4 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Assigned to Feedback

I don't think exporting it is a nice idea.
What's wrong with ruby_options(0, 0)?

#5 Updated by Graham Menhennitt over 1 year ago

Unfortunately, rubyoptions(0, 0) causes a SEGV in 1.9.3p327. The crash has been fixed ([Bug #7423]), but I don't think that rubyoptions(0, 0) works correctly. It causes the embedded Ruby interpreter to read from standard input (the same as if you just typed "ruby" at a command prompt). I agree that ruby_options(0, 0) would be an acceptable alternative if it worked.

Also available in: Atom PDF