On Friday 31 March 2006 08:52 am, Thomas E Enebo wrote:
>    This is prone to the same problem that took us away
> from lazy instantiation in the first place.   Namely, if
> you define a method in Kernel or Object matching the camel
> case name that you are hoping will be lazily created, then
> method_missing will not be called.
>
>    Perhaps, this is ok for camel case methods?  David, you ran
> into this...Perhaps you can weigh in about likelyhood?  If there
> can be no such sollision, then this solution will not work...

I think you're right.  lazy initialization is frought with peril :)

I'd suggest, that it be disabled by default, but overridable by a "global" 
variable applied at time of 'include_class'.    Then, we can have file 
'ruby_cased_java' that looks liked this:

Java.enable_ruby_case
require 'java'

Voila.  The best of all worlds.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to