From: ts Date: 2002-01-16T00:06:01+09:00 Subject: Re: possible problem with PLruby (Re: Possible bug with struct.c) >>>>> "n" == nobu nokada writes: n> But you always overwrite the methods. If the conflict can n> occur, isn't it the problem with old behavior? No, why ? I can define a method conditionnaly, and if I retrieve a class not written by me what do I do ? I don't even know what methods are defined. n> # test.rb n> autoload :PLruby, "pltest.o" n> autoload :PLtemp, "pltest.o" n> puts PLruby, PLtemp You can't write this script because $SAFE >= 4 (plruby will not execute it) plruby is loaded by postgres *before* any script is executed, and a script is executed with $SAFE >= 4 The test that it make actually is in the case where it run in a very strange environnement. Normally the test is always false (PLruby and PLTemp are not defined by ruby), if these constants exist this mean that there is something strange, and in this case I prefer stop rather than retrieving old methods. Guy Decoux