Project

General

Profile

Actions

Feature #5174

closed

Export ruby_init_prelude()

Added by shugo (Shugo Maeda) over 13 years ago. Updated almost 7 years ago.

Status:
Feedback
Target version:
-
[ruby-core:38870]

Description

Please export ruby_init_prelude() so that ruby embedded applications such as mod_ruby can call it without calling ruby_options().


Files

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

Updated by unexist (Christoph Kappel) over 13 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.

Actions #2

Updated by shyouhei (Shyouhei Urabe) almost 13 years ago

  • Status changed from Open to Assigned

Updated by mame (Yusuke Endoh) about 12 years ago

  • Target version changed from 2.0.0 to 2.6

Updated by nobu (Nobuyoshi Nakada) about 12 years 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)?

Updated by gfim (Graham Menhennitt) about 12 years ago

Unfortunately, ruby_options(0, 0) causes a SEGV in 1.9.3p327. The crash has been fixed ([Bug #7423]), but I don't think that ruby_options(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.

Actions #6

Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version deleted (2.6)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0