From: Bulat Ziganshin Date: 2003-02-27T16:00:43+09:00 Subject: Re: Ruby Compile-time optimization Hello Daniel, Thursday, February 27, 2003, 6:31:09 AM, you wrote: DC> 2) Give Ruby a '-O' option that does constant folding and raises an error DC> if you either change the value of a constant but how? :) DC> or overload Fixnum#+. i have another idea - program can include statements like "freeze Fixnum, String, Regexp" that guarantees to optimizer that appropriate classes will be not changed after this statements and methods of this classes can be dispatched as "finalized" (in terms of Java) but i think that "freeze" will be not very helpful w/o explicit type declarations -- Best regards, Bulat mailto:bulatz@integ.ru