From: matz@... (Yukihiro Matsumoto) Date: 2001-12-07T01:41:41+09:00 Subject: [ruby-talk:27711] Re: Statically linked extensions and deferred initialization. Hi, In message "[ruby-talk:27163] Statically linked extensions and deferred initialization." on 01/12/01, Kent Dahl writes: |So, I've begun thinking about deferred initialization. The most |transparant solution would be to make some map structure in extinit.c |that maps the .so filenames (which get required, but doesn't exist), to |the Init_[extname], and then look up in this if require fails. Interesting. |Are there any pitfalls I should be wary of? I don't want to go meddling |too much inside the C code of the require method, but I need this to be |transparent, i.e. the scripts should not need additional or changed |require statements. | |Oh, and this might be a nice thing to have in the Ruby proper too, maybe |as an option? Probably. If you will come up with the solution, I will consider it to be merged. I'm too busy these days to provide the solution by myself. Sorry. matz.