From: bbense+comp.lang.ruby.Sep.19.02@... Date: 2002-09-20T08:59:18+09:00 Subject: Re: self-loading scripts (at Ruby's startup time) -----BEGIN PGP SIGNED MESSAGE----- In article , Overnight wrote: >> > Thanks. Wouldn't it be useful to have some special-name, autoloading >> > script? It would be the necessary starting point in defining a standard >> > for what happens at Ruby's startup time. >> What would the standard be for how installed ruby libraries insert code >> into this file? Why not just use BEGIN {} in the library code? > >Hi. > >BEGIN {} in library code would init the library for sure, but how would >the library be *automatically* loaded? > >Pythonistas in this newsgroup surely know about site.py, the special file >that Pythons looks for and loads at startup. At current time (and in the >ActiveState distro) it is used to standardize the addition of site- >specific dirs to Python's search path and the execution of a special >"sitecustomize" module. This is something more elaborate that adding - >r to RUBYOPT. > - - GACK! Yet another reason why "Python is not for me". This is an awful idea from my point of view. - - Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBPYpe9mTWTAjn5N/lAQFr9gQAmkssTA2n+gwus4Tbym+yTSeIpR5njGhp t8S4omM+SaPC09cvdHdN4c8z4NFVn6uyH1tpKeU5gr1BUYzJP99eAvDyPXV+ZuoU LYsUdbxnRn+efX0yxFZCulir9R7qU0vOKir1k4NgbKRO6fFEY++HDVpLNSXHh65M HR/nkEtOgj4= =DPDD -----END PGP SIGNATURE-----